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.001003/0.001003, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.001224/0.001224, allocations: 182 kB / 17.56 MB, free: 6.203 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.6 MB, free: 116 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003366, allocations: 11.94 kB / 301.4 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09262/0.09298, allocations: 50.41 MB / 351.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1735/0.2665, allocations: 25.65 MB / 377.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02276/0.2893, allocations: 22.27 MB / 399.7 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004907/0.2942, allocations: 54.97 kB / 399.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00624/0.3005, allocations: 1.537 MB / 401.3 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0142/0.3147, allocations: 2.713 MB / 404 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006051/0.3208, allocations: 1.351 MB / 405.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0177/0.3385, allocations: 12.43 MB / 417.8 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/0.34, allocations: 0.8121 MB / 418.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002964/0.3429, allocations: 1.966 MB / 420.6 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002422/0.3454, allocations: 2.037 MB / 422.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002937/0.3457, allocations: 76 kB / 422.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004347/0.35, allocations: 1.49 MB / 424.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005776/0.3506, allocations: 0.5386 MB / 424.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002643/0.3533, allocations: 2.586 MB / 427.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008969/0.3623, allocations: 6.347 MB / 433.7 MB, free: 3.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.3623, allocations: 0 / 433.7 MB, free: 3.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.3623, allocations: 3.938 kB / 433.7 MB, free: 3.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002352/0.3626, allocations: 0 / 433.7 MB, free: 3.703 MB / 334.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.008904/0.3715, allocations: 5.784 MB / 439.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3715, allocations: 8.031 kB / 439.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008661/0.3724, allocations: 0.7447 MB / 440.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006635/0.379, allocations: 4.64 MB / 444.9 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.936e-05/0.3791, allocations: 66 kB / 444.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002327/0.3794, allocations: 99.89 kB / 445 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002447/0.3818, allocations: 1.324 MB / 446.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.3818, allocations: 0 / 446.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001231/0.382, allocations: 32 kB / 446.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.973e-05/0.382, allocations: 43.97 kB / 446.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002586/0.3846, allocations: 1.523 MB / 447.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009332/0.394, allocations: 5.66 MB / 453.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/0.3958, allocations: 1.025 MB / 454.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/0.3975, allocations: 1.243 MB / 455.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05485/0.4524, allocations: 59.86 MB / 0.5036 GB, free: 9.164 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/0.4535, allocations: 0.5755 MB / 0.5042 GB, free: 8.574 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.075e-06/0.4535, allocations: 0 / 0.5042 GB, free: 8.574 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003591/0.4571, allocations: 1.938 MB / 0.5061 GB, free: 6.625 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.4572, allocations: 67.95 kB / 0.5062 GB, free: 6.547 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008012/0.4652, allocations: 5.586 MB / 0.5116 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001506/0.4654, allocations: 41.7 kB / 0.5117 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002608/0.468, allocations: 2.939 MB / 0.5145 GB, free: 13.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003437/0.4683, allocations: 303.8 kB / 0.5148 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.4685, allocations: 125.6 kB / 0.5149 GB, free: 13.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.884e-05/0.4686, allocations: 301.1 kB / 0.5152 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009472/0.4696, allocations: 427.8 kB / 0.5156 GB, free: 12.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.4709, allocations: 1.106 MB / 0.5167 GB, free: 11.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002401/0.4734, allocations: 1.654 MB / 0.5183 GB, free: 9.418 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.4734, allocations: 8 kB / 0.5183 GB, free: 9.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00383/0.4772, allocations: 2.254 MB / 0.5205 GB, free: 7.145 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.4773, allocations: 16 kB / 0.5206 GB, free: 7.129 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002058/0.4775, allocations: 160 kB / 0.5207 GB, free: 6.973 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.029e-05/0.4775, allocations: 35.94 kB / 0.5207 GB, free: 6.938 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.4788, allocations: 371.4 kB / 0.5211 GB, free: 6.574 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.846e-05/0.4788, allocations: 47.84 kB / 0.5211 GB, free: 6.527 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/0.4807, allocations: 194.2 kB / 0.5213 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001955/0.4809, allocations: 120 kB / 0.5214 GB, free: 6.219 MB / 446.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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001367/0.4823, allocations: 0.715 MB / 0.5221 GB, free: 5.496 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009157/0.4832, allocations: 0.714 MB / 0.5228 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005375/0.4886, allocations: 2.201 MB / 0.525 GB, free: 2.562 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/0.4887, allocations: 8 kB / 0.525 GB, free: 2.555 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4887, allocations: 3.938 kB / 0.525 GB, free: 2.551 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.4887, allocations: 3.984 kB / 0.525 GB, free: 2.547 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1661/0.6547, allocations: 3.634 MB / 0.5285 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001977/0.655, allocations: 139.6 kB / 0.5287 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007999/0.6558, allocations: 165.7 kB / 0.5288 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.6558, allocations: 3.062 kB / 0.5288 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.6559, allocations: 59.97 kB / 0.5289 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.6559, allocations: 4.219 kB / 0.5289 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.6559, allocations: 6.844 kB / 0.5289 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003705/0.6597, allocations: 2.218 MB / 0.5311 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/0.661, allocations: 0.8124 MB / 0.5319 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005401/0.6615, allocations: 15 kB / 0.5319 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.6627, allocations: 49.55 kB / 0.5319 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/0.6629, allocations: 95.78 kB / 0.532 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.6631, allocations: 69.28 kB / 0.5321 GB, free: 153.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005462/0.6685, allocations: 3.609 MB / 0.5356 GB, free: 152 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.152e-06/0.6686, allocations: 0 / 0.5356 GB, free: 152 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002653/0.6712, allocations: 1.079 MB / 0.5367 GB, free: 152 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001744/0.673, allocations: 1.172 MB / 0.5378 GB, free: 151.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002547/0.6755, allocations: 1.477 MB / 0.5393 GB, free: 151.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.6756, allocations: 0 / 0.5393 GB, free: 151.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.6767, allocations: 0.791 MB / 0.54 GB, free: 150.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006046/0.6827, allocations: 1.128 MB / 0.5411 GB, free: 150.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/0.6949, allocations: 9.861 MB / 0.5508 GB, free: 144.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001755/0.6967, allocations: 2.597 MB / 0.5533 GB, free: 144 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002643/0.6994, allocations: 0.6804 MB / 0.554 GB, free: 143.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003455/0.6997, allocations: 280.3 kB / 0.5542 GB, free: 143.9 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.6998, allocations: 1.75 kB / 0.5542 GB, free: 143.9 MB / 446.1 MB Notification: Performance of Templates: time 0.07961/0.7794, allocations: 53.43 MB / 0.6064 GB, free: 92.89 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