Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000766/0.0007661, allocations: 87.98 kB / 16.31 MB, free: 6.449 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.0007813/0.0007813, allocations: 179.5 kB / 17.21 MB, free: 6.32 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.314/1.314, allocations: 223.3 MB / 241.2 MB, free: 5.27 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000218/0.0002181, allocations: 8.812 kB / 300.8 MB, free: 5.547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08297/0.0832, allocations: 50.43 MB / 351.2 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02043/0.1037, allocations: 23.73 MB / 375 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02477/0.1285, allocations: 20.52 MB / 395.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003658/0.1322, allocations: 55.69 kB / 395.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003621/0.1358, allocations: 1.286 MB / 396.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008752/0.1446, allocations: 2.624 MB / 399.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003928/0.1486, allocations: 1.253 MB / 400.7 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01798/0.1666, allocations: 11.82 MB / 412.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00155/0.1681, allocations: 0.7911 MB / 413.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002605/0.1708, allocations: 1.803 MB / 415.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002089/0.1729, allocations: 1.926 MB / 417 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002793/0.1732, allocations: 76 kB / 417.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003625/0.1768, allocations: 1.365 MB / 418.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000513/0.1773, allocations: 0.5 MB / 419 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.1785, allocations: 1.174 MB / 420.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004105/0.1826, allocations: 4.778 MB / 424.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1826, allocations: 0 / 424.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1827, allocations: 0 / 424.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.612e-05/0.1827, allocations: 0 / 424.9 MB, free: 1.449 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.1585/0.3412, allocations: 5.856 MB / 430.8 MB, free: 62.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3413, allocations: 10.91 kB / 430.8 MB, free: 62.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007028/0.342, allocations: 0.7416 MB / 431.5 MB, free: 61.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00745/0.3494, allocations: 4.294 MB / 435.8 MB, free: 60.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.176e-05/0.3495, allocations: 65.27 kB / 435.9 MB, free: 60.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002208/0.3497, allocations: 104.1 kB / 436 MB, free: 60.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002116/0.3519, allocations: 1.322 MB / 437.3 MB, free: 60.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.3519, allocations: 0 / 437.3 MB, free: 60.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.352, allocations: 33.38 kB / 437.4 MB, free: 60.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-05/0.3521, allocations: 44.83 kB / 437.4 MB, free: 60.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002388/0.3544, allocations: 1.523 MB / 438.9 MB, free: 60.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008859/0.3633, allocations: 5.653 MB / 444.6 MB, free: 58.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.3647, allocations: 1.02 MB / 445.6 MB, free: 57.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001295/0.366, allocations: 1.243 MB / 446.8 MB, free: 56.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04026/0.4063, allocations: 59.86 MB / 0.4948 GB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009883/0.4073, allocations: 0.5766 MB / 0.4954 GB, free: 7.949 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 4.739e-06/0.4073, allocations: 0.5625 kB / 0.4954 GB, free: 7.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.003239/0.4106, allocations: 1.942 MB / 0.4973 GB, free: 6.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.4106, allocations: 59.97 kB / 0.4973 GB, free: 5.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006358/0.417, allocations: 5.516 MB / 0.5027 GB, free: 452 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/0.4171, allocations: 45.69 kB / 0.5028 GB, free: 400 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002471/0.4196, allocations: 2.944 MB / 0.5056 GB, free: 13.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002965/0.4199, allocations: 291.8 kB / 0.5059 GB, free: 13.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.368e-05/0.42, allocations: 32 kB / 0.506 GB, free: 13.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4202, allocations: 361.9 kB / 0.5063 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008437/0.421, allocations: 419.8 kB / 0.5067 GB, free: 12.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/0.4223, allocations: 1.106 MB / 0.5078 GB, free: 10.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.4233, allocations: 0.5659 MB / 0.5083 GB, free: 10.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.4233, allocations: 8 kB / 0.5083 GB, free: 10.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003957/0.4273, allocations: 2.241 MB / 0.5105 GB, free: 8.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.4273, allocations: 18.38 kB / 0.5105 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002179/0.4275, allocations: 160 kB / 0.5107 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.154e-05/0.4276, allocations: 40 kB / 0.5107 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.4288, allocations: 367.9 kB / 0.5111 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.622e-05/0.4289, allocations: 55.78 kB / 0.5111 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/0.4309, allocations: 190.2 kB / 0.5113 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001945/0.4311, allocations: 127.9 kB / 0.5114 GB, free: 7.164 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001421/0.4325, allocations: 0.716 MB / 0.5121 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008903/0.4334, allocations: 0.7184 MB / 0.5128 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00519/0.4386, allocations: 2.202 MB / 0.515 GB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.4386, allocations: 8 kB / 0.515 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4387, allocations: 0 / 0.515 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.4387, allocations: 7.984 kB / 0.515 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006255/0.4449, allocations: 3.65 MB / 0.5186 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002017/0.4452, allocations: 136 kB / 0.5187 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007234/0.4459, allocations: 163.9 kB / 0.5189 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.281e-05/0.4459, allocations: 4 kB / 0.5189 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.614e-05/0.446, allocations: 59.98 kB / 0.5189 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.636e-06/0.446, allocations: 8 kB / 0.5189 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.446, allocations: 0 / 0.5189 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003656/0.4497, allocations: 2.212 MB / 0.5211 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/0.4512, allocations: 0.82 MB / 0.5219 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006407/0.4519, allocations: 16 kB / 0.5219 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/0.453, allocations: 43.97 kB / 0.522 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/0.4533, allocations: 100.5 kB / 0.522 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/0.4535, allocations: 71.19 kB / 0.5221 GB, free: 12.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00487/0.4583, allocations: 3.534 MB / 0.5256 GB, free: 8.641 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4583, allocations: 0 / 0.5256 GB, free: 8.641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002227/0.4606, allocations: 1.076 MB / 0.5266 GB, free: 7.605 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001478/0.4621, allocations: 1.113 MB / 0.5277 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002359/0.4644, allocations: 1.471 MB / 0.5291 GB, free: 5.094 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4644, allocations: 0 / 0.5291 GB, free: 5.094 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.4656, allocations: 0.7864 MB / 0.5299 GB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004075/0.4697, allocations: 1.143 MB / 0.531 GB, free: 3.121 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.4808, allocations: 9.192 MB / 0.54 GB, free: 9.887 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001973/0.4828, allocations: 2.588 MB / 0.5425 GB, free: 7.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002504/0.4853, allocations: 0.6885 MB / 0.5432 GB, free: 6.578 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003804/0.4857, allocations: 279.4 kB / 0.5435 GB, free: 6.305 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4857, allocations: 0 / 0.5435 GB, free: 6.305 MB / 414.1 MB Notification: Performance of Templates: time 0.2431/0.7288, allocations: 51.8 MB / 0.5941 GB, free: 136 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches