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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009391/0.0009392, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008613/0.0008612, allocations: 98.81 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.173e-05/1.176e-05, allocations: 0 / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08534/0.08536, allocations: 50.42 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3008/0.3862, allocations: 104.5 MB / 491.9 MB, free: 6.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.3865, allocations: 83.95 kB / 492 MB, free: 6.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1027/0.4892, allocations: 38.95 MB / 0.5185 GB, free: 15.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4893, allocations: 0 / 0.5185 GB, free: 15.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001226/0.4894, allocations: 47.92 kB / 0.5186 GB, free: 15 MB / 410.7 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.003317/0.4927, allocations: 1.74 MB / 0.5203 GB, free: 13.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.4928, allocations: 8.031 kB / 0.5203 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006854/0.4935, allocations: 241.4 kB / 0.5205 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002168/0.4957, allocations: 1.269 MB / 0.5218 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.544e-05/0.4957, allocations: 52 kB / 0.5218 GB, free: 11.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.4959, allocations: 88 kB / 0.5219 GB, free: 11.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002387/0.4983, allocations: 1.455 MB / 0.5233 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002644/0.501, allocations: 1.731 MB / 0.525 GB, free: 8.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.732e-05/0.5011, allocations: 11.84 kB / 0.525 GB, free: 8.219 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.5012, allocations: 4 kB / 0.525 GB, free: 8.215 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.045e-05/0.5013, allocations: 70.92 kB / 0.5251 GB, free: 8.145 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008999/0.5103, allocations: 6.551 MB / 0.5315 GB, free: 1.309 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006166/0.5109, allocations: 463.9 kB / 0.5319 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003258/0.5113, allocations: 263.4 kB / 0.5322 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002316/0.5136, allocations: 1.416 MB / 0.5336 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.5136, allocations: 34.56 kB / 0.5336 GB, free: 15.08 MB / 426.7 MB Notification: Performance of pre-optimization done (n=38): time 2.104e-06/0.5136, allocations: 0 / 0.5336 GB, free: 15.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.00454/0.5182, allocations: 2.483 MB / 0.536 GB, free: 12.53 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.5182, allocations: 59.84 kB / 0.5361 GB, free: 12.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.5197, allocations: 1.168 MB / 0.5372 GB, free: 11.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.207e-05/0.5198, allocations: 33.7 kB / 0.5372 GB, free: 11.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006598/0.5205, allocations: 1.028 MB / 0.5383 GB, free: 10.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.5206, allocations: 209.2 kB / 0.5385 GB, free: 9.996 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.088e-05/0.5207, allocations: 0 / 0.5385 GB, free: 9.996 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5208, allocations: 369.9 kB / 0.5388 GB, free: 9.629 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006322/0.5215, allocations: 455.8 kB / 0.5392 GB, free: 9.184 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001102/0.5226, allocations: 1.352 MB / 0.5406 GB, free: 7.371 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009197/0.5235, allocations: 0.7265 MB / 0.5413 GB, free: 6.648 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.214e-05/0.5235, allocations: 8 kB / 0.5413 GB, free: 6.641 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002678/0.5262, allocations: 1.834 MB / 0.5431 GB, free: 4.789 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.5263, allocations: 20 kB / 0.5431 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.937e-05/0.5263, allocations: 32 kB / 0.5431 GB, free: 4.738 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005215/0.5268, allocations: 226.9 kB / 0.5433 GB, free: 4.508 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.5279, allocations: 379.4 kB / 0.5437 GB, free: 4.137 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001503/0.5294, allocations: 1.693 MB / 0.5453 GB, free: 2.324 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.5306, allocations: 95.53 kB / 0.5454 GB, free: 2.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.5307, allocations: 91.98 kB / 0.5455 GB, free: 2.141 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002186/0.5309, allocations: 186.3 kB / 0.5457 GB, free: 1.953 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001695/0.5311, allocations: 134.3 kB / 0.5458 GB, free: 1.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001684/0.5328, allocations: 0.9755 MB / 0.5468 GB, free: 0.8203 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.5328, allocations: 11.98 kB / 0.5468 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.5328, allocations: 0 / 0.5468 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.5329, allocations: 3.953 kB / 0.5468 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2013/0.7341, allocations: 2.9 MB / 0.5496 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.7342, allocations: 6.656 kB / 0.5496 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004017/0.7346, allocations: 92.62 kB / 0.5497 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005977/0.7352, allocations: 224.5 kB / 0.5499 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-05/0.7353, allocations: 8.344 kB / 0.55 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00296/0.7382, allocations: 3.585 MB / 0.5535 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001503/0.7398, allocations: 1.93 MB / 0.5553 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.7419, allocations: 1.735 MB / 0.557 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004768/0.7424, allocations: 282.3 kB / 0.5573 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.7425, allocations: 4.797 kB / 0.5573 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005842/0.7431, allocations: 39.78 kB / 0.5573 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.7432, allocations: 53.39 kB / 0.5574 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.014e-05/0.7433, allocations: 23.72 kB / 0.5574 GB, free: 107.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001178/0.7445, allocations: 0.8365 MB / 0.5582 GB, free: 107.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7445, allocations: 0 / 0.5582 GB, free: 107.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001522/0.746, allocations: 341.1 kB / 0.5586 GB, free: 107.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004574/0.7465, allocations: 345.6 kB / 0.5589 GB, free: 107.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.7484, allocations: 1.427 MB / 0.5603 GB, free: 107.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.7485, allocations: 1.641 kB / 0.5603 GB, free: 107.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.7495, allocations: 0.7711 MB / 0.561 GB, free: 106.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001582/0.7511, allocations: 317.6 kB / 0.5613 GB, free: 106.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004392/0.7555, allocations: 2.33 MB / 0.5636 GB, free: 106.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001329/0.7569, allocations: 1.494 MB / 0.5651 GB, free: 105.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001244/0.7581, allocations: 333.2 kB / 0.5654 GB, free: 105.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002481/0.7584, allocations: 106.8 kB / 0.5655 GB, free: 105.4 MB / 426.7 MB Notification: Performance of SimCode: time 8.72e-07/0.7584, allocations: 0 / 0.5655 GB, free: 105.4 MB / 426.7 MB Notification: Performance of Templates: time 0.0283/0.7867, allocations: 16.4 MB / 0.5815 GB, free: 104.6 MB / 426.7 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","../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