Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 107.8 kB / 17.06 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 188 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 43.94 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.278, allocations: 49.43 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01028/0.2884, allocations: 8.995 MB / 409.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006369/0.2948, allocations: 3.163 MB / 412.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001499/0.2963, allocations: 39.88 kB / 412.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.2982, allocations: 0.7145 MB / 413.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002663/0.3009, allocations: 0.734 MB / 414.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008802/0.3018, allocations: 327.5 kB / 414.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002505/0.3043, allocations: 2.115 MB / 416.8 MB, free: 8.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001567/0.3059, allocations: 1.421 MB / 418.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.3069, allocations: 0.9148 MB / 419.1 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001199/0.3082, allocations: 1.129 MB / 420.3 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002488/0.3084, allocations: 228 kB / 420.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004987/0.3089, allocations: 323.8 kB / 420.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006071/0.3095, allocations: 0.6778 MB / 421.5 MB, free: 4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.3106, allocations: 1.077 MB / 422.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003071/0.3137, allocations: 3.104 MB / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3137, allocations: 3.938 kB / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3137, allocations: 0 / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.18e-05/0.3138, allocations: 0 / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.0045/0.3183, allocations: 2.273 MB / 427.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.3184, allocations: 8.031 kB / 427.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006421/0.319, allocations: 226.5 kB / 428.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002034/0.3211, allocations: 1.215 MB / 429.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.256e-05/0.3212, allocations: 115.5 kB / 429.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002401/0.3214, allocations: 155.9 kB / 429.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003166/0.3246, allocations: 2.004 MB / 431.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.768e-05/0.3246, allocations: 15.89 kB / 431.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001566/0.3248, allocations: 64 kB / 431.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.634e-05/0.3249, allocations: 74.92 kB / 431.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002543/0.3275, allocations: 1.651 MB / 433.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00958/0.337, allocations: 6.889 MB / 440.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007324/0.3378, allocations: 440.8 kB / 440.8 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003762/0.3382, allocations: 262 kB / 441 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002105/0.3384, allocations: 121.5 kB / 441.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.3385, allocations: 43 kB / 441.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.946e-06/0.3385, allocations: 0 / 441.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.006737/0.3452, allocations: 3.292 MB / 444.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002326/0.3476, allocations: 2.329 MB / 446.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002211/0.3498, allocations: 1.608 MB / 448.4 MB, free: 8.246 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.095e-05/0.3499, allocations: 33.7 kB / 448.5 MB, free: 8.207 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000755/0.3506, allocations: 1.026 MB / 449.5 MB, free: 7.168 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.3508, allocations: 240.8 kB / 449.7 MB, free: 6.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004624/0.3513, allocations: 323.1 kB / 450 MB, free: 6.609 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3514, allocations: 305.1 kB / 450.3 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007779/0.3522, allocations: 0.5153 MB / 450.8 MB, free: 5.793 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.3535, allocations: 1.465 MB / 452.3 MB, free: 3.863 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002297/0.3559, allocations: 2.141 MB / 454.5 MB, free: 1.254 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.348e-05/0.3559, allocations: 15.94 kB / 454.5 MB, free: 1.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003271/0.3592, allocations: 2.158 MB / 456.6 MB, free: 15.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.3592, allocations: 20 kB / 456.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-05/0.3592, allocations: 32 kB / 456.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005352/0.3598, allocations: 230.4 kB / 456.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.3609, allocations: 395.6 kB / 457.3 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001605/0.3625, allocations: 1.852 MB / 459.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001213/0.3637, allocations: 135.4 kB / 459.3 MB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.3639, allocations: 100 kB / 459.4 MB, free: 12.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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.0008454/0.3647, allocations: 0.5867 MB / 460 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002335/0.3649, allocations: 154.1 kB / 460.1 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/0.3668, allocations: 1.106 MB / 461.2 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.3668, allocations: 4 kB / 461.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.3668, allocations: 8 kB / 461.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.3668, allocations: 3.984 kB / 461.2 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004947/0.3718, allocations: 3.39 MB / 464.6 MB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.3718, allocations: 8 kB / 464.6 MB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004148/0.3722, allocations: 111.8 kB / 464.7 MB, free: 6.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000607/0.3728, allocations: 231.1 kB / 465 MB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.477e-05/0.3729, allocations: 23.92 kB / 465 MB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003701/0.3766, allocations: 4.046 MB / 469 MB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001938/0.3786, allocations: 2.165 MB / 471.2 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002466/0.381, allocations: 1.751 MB / 472.9 MB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005658/0.3816, allocations: 311.1 kB / 473.2 MB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.3818, allocations: 19.94 kB / 473.3 MB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006267/0.3824, allocations: 48.02 kB / 473.3 MB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.3826, allocations: 63.8 kB / 473.4 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.866e-05/0.3826, allocations: 24.3 kB / 473.4 MB, free: 13.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001541/0.3842, allocations: 1.07 MB / 474.5 MB, free: 12.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3842, allocations: 4 kB / 474.5 MB, free: 12.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001567/0.3857, allocations: 384 kB / 474.8 MB, free: 11.93 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003011/0.3861, allocations: 168.7 kB / 475 MB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002341/0.3884, allocations: 1.614 MB / 476.6 MB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.3884, allocations: 8.062 kB / 476.6 MB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.3896, allocations: 0.8551 MB / 477.5 MB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001643/0.3913, allocations: 417.1 kB / 477.9 MB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004438/0.3958, allocations: 3.157 MB / 481.1 MB, free: 5.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.3968, allocations: 1.472 MB / 482.5 MB, free: 4.016 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008694/0.3977, allocations: 346 kB / 482.9 MB, free: 3.672 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.398, allocations: 119.4 kB / 483 MB, free: 3.555 MB / 398.1 MB Notification: Performance of SimCode: time 1.723e-06/0.398, allocations: 0 / 483 MB, free: 3.555 MB / 398.1 MB Notification: Performance of Templates: time 0.03422/0.4322, allocations: 20.86 MB / 0.492 GB, free: 14.89 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches