Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001364/0.001364, allocations: 104.2 kB / 17.58 MB, free: 5.418 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.0014/0.001401, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001219/0.00122, allocations: 47.94 kB / 280.6 MB, free: 3.195 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08236/0.08359, allocations: 46.64 MB / 327.3 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02134/0.105, allocations: 25.35 MB / 352.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02473/0.1297, allocations: 21.33 MB / 374 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004439/0.1342, allocations: 63.62 kB / 374 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004923/0.1393, allocations: 1.723 MB / 375.7 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009793/0.1491, allocations: 3.16 MB / 378.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1517/0.3008, allocations: 1.559 MB / 380.5 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01713/0.3179, allocations: 12.35 MB / 392.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.3195, allocations: 0.8719 MB / 393.7 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003519/0.3231, allocations: 1.835 MB / 395.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003429/0.3265, allocations: 2.051 MB / 397.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007287/0.3272, allocations: 136.2 kB / 397.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005423/0.3327, allocations: 1.228 MB / 398.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008211/0.3335, allocations: 0.6112 MB / 399.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003228/0.3367, allocations: 2.646 MB / 402.2 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005705/0.3425, allocations: 6.615 MB / 408.8 MB, free: 7.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3425, allocations: 0 / 408.8 MB, free: 7.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3425, allocations: 0 / 408.8 MB, free: 7.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.22e-05/0.3426, allocations: 0 / 408.8 MB, free: 7.723 MB / 318.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.007158/0.3498, allocations: 6.747 MB / 415.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.3498, allocations: 12.03 kB / 415.6 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005423/0.3503, allocations: 0.752 MB / 416.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005848/0.3562, allocations: 4.668 MB / 421 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.92e-05/0.3563, allocations: 66 kB / 421 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.3565, allocations: 95.91 kB / 421.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002092/0.3586, allocations: 1.305 MB / 422.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.3586, allocations: 0.75 kB / 422.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.3588, allocations: 39.28 kB / 422.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.129e-05/0.3588, allocations: 41.66 kB / 422.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002461/0.3613, allocations: 1.488 MB / 424 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009145/0.3704, allocations: 5.636 MB / 429.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001675/0.3721, allocations: 0.9907 MB / 430.6 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.3737, allocations: 1.22 MB / 431.9 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05109/0.4248, allocations: 59.93 MB / 491.8 MB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009845/0.4258, allocations: 0.5662 MB / 492.4 MB, free: 12.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 5.05e-06/0.4258, allocations: 3.984 kB / 492.4 MB, free: 12.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003242/0.4291, allocations: 1.881 MB / 494.2 MB, free: 10.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.4292, allocations: 63.95 kB / 494.3 MB, free: 10.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006952/0.4361, allocations: 5.632 MB / 499.9 MB, free: 5.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000154/0.4363, allocations: 46.73 kB / 500 MB, free: 5.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002507/0.4388, allocations: 2.93 MB / 0.4911 GB, free: 2.082 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003325/0.4391, allocations: 290.9 kB / 0.4914 GB, free: 1.801 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000523/0.4397, allocations: 426.5 kB / 0.4918 GB, free: 1.379 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.622e-05/0.4398, allocations: 305.1 kB / 0.4921 GB, free: 1.078 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008298/0.4406, allocations: 407.7 kB / 0.4925 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/0.442, allocations: 1.086 MB / 0.4935 GB, free: 15.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/0.4441, allocations: 1.617 MB / 0.4951 GB, free: 13.44 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.4441, allocations: 4 kB / 0.4951 GB, free: 13.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003866/0.448, allocations: 2.218 MB / 0.4973 GB, free: 11.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.4481, allocations: 16 kB / 0.4973 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000217/0.4483, allocations: 168.6 kB / 0.4975 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.767e-05/0.4483, allocations: 32 kB / 0.4975 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/0.4494, allocations: 362.6 kB / 0.4978 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.884e-05/0.4495, allocations: 43.86 kB / 0.4979 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/0.4515, allocations: 190.1 kB / 0.4981 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001936/0.4517, allocations: 120 kB / 0.4982 GB, free: 10.44 MB / 430.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.001345/0.4531, allocations: 0.7199 MB / 0.4989 GB, free: 9.707 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007307/0.4538, allocations: 0.7217 MB / 0.4996 GB, free: 8.977 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004904/0.4587, allocations: 2.164 MB / 0.5017 GB, free: 6.816 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.4588, allocations: 8 kB / 0.5017 GB, free: 6.809 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.4588, allocations: 0 / 0.5017 GB, free: 6.809 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.4588, allocations: 7.969 kB / 0.5017 GB, free: 6.801 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005783/0.4646, allocations: 3.627 MB / 0.5053 GB, free: 3.125 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001823/0.4648, allocations: 140 kB / 0.5054 GB, free: 2.988 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007632/0.4655, allocations: 151.8 kB / 0.5055 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.4656, allocations: 4 kB / 0.5055 GB, free: 2.836 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.925e-05/0.4657, allocations: 64.06 kB / 0.5056 GB, free: 2.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.554e-06/0.4657, allocations: 4 kB / 0.5056 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4657, allocations: 0 / 0.5056 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003498/0.4692, allocations: 2.161 MB / 0.5077 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/0.4707, allocations: 0.8239 MB / 0.5085 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005473/0.4712, allocations: 16 kB / 0.5085 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.4723, allocations: 43.95 kB / 0.5086 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002155/0.4725, allocations: 88.5 kB / 0.5087 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.4726, allocations: 71.98 kB / 0.5087 GB, free: 15.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004846/0.4775, allocations: 3.633 MB / 0.5123 GB, free: 11.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4775, allocations: 0 / 0.5123 GB, free: 11.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002371/0.4799, allocations: 1.085 MB / 0.5133 GB, free: 10.82 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.001563/0.4815, allocations: 1.19 MB / 0.5145 GB, free: 9.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00271/0.4842, allocations: 1.463 MB / 0.5159 GB, free: 8.336 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4842, allocations: 0 / 0.5159 GB, free: 8.336 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.4853, allocations: 0.7732 MB / 0.5167 GB, free: 7.516 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003406/0.4887, allocations: 0.9922 MB / 0.5177 GB, free: 6.523 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.4992, allocations: 8.281 MB / 0.5257 GB, free: 14.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001828/0.501, allocations: 2.612 MB / 0.5283 GB, free: 11.57 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002329/0.5034, allocations: 0.6927 MB / 0.529 GB, free: 10.88 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003728/0.5038, allocations: 283.4 kB / 0.5292 GB, free: 10.6 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5038, allocations: 0 / 0.5292 GB, free: 10.6 MB / 462.1 MB Notification: Performance of Templates: time 0.2166/0.7204, allocations: 55.4 MB / 0.5833 GB, free: 153.1 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches