Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6400,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6400,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001125/0.001125, allocations: 108.2 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.3 MB, free: 10.87 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 63.33 kB / 306.3 MB, free: 1.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08831/0.08952, allocations: 50.54 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01013/0.0997, allocations: 9.058 MB / 365.9 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006484/0.1062, allocations: 3.167 MB / 369 MB, free: 2.254 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002032/0.1083, allocations: 39.81 kB / 369.1 MB, free: 2.215 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00207/0.1105, allocations: 0.5983 MB / 369.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002605/0.1131, allocations: 0.6372 MB / 370.3 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008336/0.114, allocations: 279.7 kB / 370.6 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1573/0.2712, allocations: 2.457 MB / 373 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002213/0.2735, allocations: 1.187 MB / 374.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002277/0.2758, allocations: 0.8147 MB / 375 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002264/0.2781, allocations: 1.114 MB / 376.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003638/0.2785, allocations: 144.2 kB / 376.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007935/0.2793, allocations: 248.7 kB / 376.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006129/0.2799, allocations: 0.5883 MB / 377.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001263/0.2812, allocations: 1.005 MB / 378.1 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002802/0.284, allocations: 3.039 MB / 381.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.284, allocations: 1.312 kB / 381.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.284, allocations: 0 / 381.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.525e-05/0.2841, allocations: 2.719 kB / 381.2 MB, free: 9.023 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.00395/0.288, allocations: 2.292 MB / 383.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.2881, allocations: 13.75 kB / 383.5 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006661/0.2888, allocations: 234.5 kB / 383.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001637/0.2904, allocations: 1.203 MB / 384.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.643e-05/0.2905, allocations: 114.2 kB / 385 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002172/0.2907, allocations: 155.3 kB / 385.2 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002988/0.2937, allocations: 2.034 MB / 387.2 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.518e-05/0.2938, allocations: 13.77 kB / 387.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/0.2939, allocations: 62.94 kB / 387.3 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.802e-05/0.294, allocations: 81.25 kB / 387.4 MB, free: 5.859 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002576/0.2966, allocations: 1.681 MB / 389 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007842/0.3044, allocations: 7.084 MB / 396.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008654/0.3053, allocations: 471 kB / 396.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000414/0.3058, allocations: 278.8 kB / 396.9 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002043/0.306, allocations: 116 kB / 397 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.306, allocations: 37.28 kB / 397 MB, free: 15.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 2.084e-06/0.306, allocations: 2.062 kB / 397 MB, free: 15.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.006342/0.3124, allocations: 3.037 MB / 400 MB, free: 13.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.3124, allocations: 58.38 kB / 400.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002045/0.3145, allocations: 1.635 MB / 401.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.881e-05/0.3145, allocations: 33.7 kB / 401.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006992/0.3152, allocations: 1.028 MB / 402.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.3154, allocations: 243.6 kB / 403 MB, free: 11.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004102/0.3158, allocations: 315.1 kB / 403.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.026e-05/0.3159, allocations: 306 kB / 403.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008969/0.3168, allocations: 0.5231 MB / 404.2 MB, free: 9.941 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.3183, allocations: 1.449 MB / 405.6 MB, free: 8.047 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002458/0.3208, allocations: 2.137 MB / 407.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/0.3208, allocations: 8 kB / 407.8 MB, free: 5.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.00359/0.3244, allocations: 2.165 MB / 409.9 MB, free: 3.398 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.3244, allocations: 19.94 kB / 409.9 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.241e-05/0.3245, allocations: 36 kB / 410 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005619/0.325, allocations: 222.4 kB / 410.2 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.3262, allocations: 399.2 kB / 410.6 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001785/0.328, allocations: 1.722 MB / 412.3 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.3297, allocations: 147.3 kB / 412.4 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.3298, allocations: 100 kB / 412.5 MB, free: 0.6172 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009532/0.3307, allocations: 0.5828 MB / 413.1 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002765/0.331, allocations: 154.3 kB / 413.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002151/0.3332, allocations: 1.09 MB / 414.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.3332, allocations: 8 kB / 414.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.3332, allocations: 7.938 kB / 414.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.3332, allocations: 0 / 414.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004665/0.3379, allocations: 2.778 MB / 417.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.3379, allocations: 4.156 kB / 417.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005092/0.3385, allocations: 115.9 kB / 417.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004316/0.3389, allocations: 170.4 kB / 417.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.31e-05/0.339, allocations: 16 kB / 417.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/0.3404, allocations: 1.651 MB / 419.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3405, allocations: 0 / 419.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002608/0.3431, allocations: 1.634 MB / 420.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006309/0.3437, allocations: 299.3 kB / 421 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.3439, allocations: 15.94 kB / 421.1 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006426/0.3446, allocations: 59.98 kB / 421.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.3447, allocations: 48.44 kB / 421.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.169e-05/0.3447, allocations: 19.98 kB / 421.2 MB, free: 7.664 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001554/0.3463, allocations: 1.075 MB / 422.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3463, allocations: 0 / 422.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001382/0.3477, allocations: 372 kB / 422.6 MB, free: 6.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000281/0.348, allocations: 158.2 kB / 422.8 MB, free: 6.066 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002408/0.3504, allocations: 1.615 MB / 424.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3504, allocations: 0.75 kB / 424.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.3515, allocations: 0.7593 MB / 425.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/0.3532, allocations: 390.1 kB / 425.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004464/0.3576, allocations: 3.64 MB / 429.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.3587, allocations: 1.469 MB / 430.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009994/0.3597, allocations: 358 kB / 431 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002606/0.3599, allocations: 107.4 kB / 431.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of SimCode: time 5.82e-07/0.3599, allocations: 0 / 431.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of Templates: time 0.02969/0.3896, allocations: 18.8 MB / 449.9 MB, free: 10.99 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches