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.001058/0.001058, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.0009802/0.0009802, allocations: 190 kB / 18.07 MB, free: 5.414 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.341/1.341, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001195/0.001195, allocations: 47.92 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08923/0.09044, allocations: 46.63 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02226/0.1127, allocations: 25.04 MB / 351.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02475/0.1375, allocations: 21.49 MB / 373.1 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003919/0.1415, allocations: 55.69 kB / 373.2 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00472/0.1462, allocations: 1.465 MB / 374.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01121/0.1575, allocations: 2.678 MB / 377.3 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005358/0.1629, allocations: 1.305 MB / 378.6 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1833/0.3462, allocations: 12.14 MB / 390.8 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001343/0.3476, allocations: 0.8224 MB / 391.6 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002792/0.3504, allocations: 1.795 MB / 393.4 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00179/0.3522, allocations: 2.026 MB / 395.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003713/0.3526, allocations: 90.69 kB / 395.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003372/0.3559, allocations: 1.17 MB / 396.7 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004346/0.3564, allocations: 0.5678 MB / 397.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002027/0.3584, allocations: 2.599 MB / 399.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004893/0.3633, allocations: 6.491 MB / 406.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3634, allocations: 3.938 kB / 406.3 MB, free: 9.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3634, allocations: 0 / 406.3 MB, free: 9.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.895e-05/0.3635, allocations: 0 / 406.3 MB, free: 9.16 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.007099/0.3706, allocations: 6.737 MB / 413.1 MB, free: 3.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.3706, allocations: 8.031 kB / 413.1 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005389/0.3712, allocations: 0.752 MB / 413.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00527/0.3764, allocations: 4.673 MB / 418.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.196e-05/0.3765, allocations: 66 kB / 418.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002029/0.3767, allocations: 95.91 kB / 418.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002216/0.3789, allocations: 1.301 MB / 420 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.379, allocations: 0.75 kB / 420 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/0.3791, allocations: 36 kB / 420 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.365e-05/0.3791, allocations: 41.66 kB / 420 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002468/0.3816, allocations: 1.492 MB / 421.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009248/0.3909, allocations: 5.642 MB / 427.2 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.3926, allocations: 0.9925 MB / 428.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001667/0.3942, allocations: 1.22 MB / 429.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05529/0.4495, allocations: 59.94 MB / 489.3 MB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001024/0.4506, allocations: 0.5628 MB / 489.9 MB, free: 14.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 2.485e-06/0.4506, allocations: 0 / 489.9 MB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003223/0.4538, allocations: 1.883 MB / 491.8 MB, free: 12.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.4539, allocations: 59.97 kB / 491.8 MB, free: 12.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006876/0.4608, allocations: 5.628 MB / 497.5 MB, free: 7.305 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.666e-05/0.4609, allocations: 41.7 kB / 497.5 MB, free: 7.258 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002305/0.4632, allocations: 2.941 MB / 0.4887 GB, free: 4.312 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002571/0.4635, allocations: 290.3 kB / 0.489 GB, free: 4.031 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005057/0.464, allocations: 426.5 kB / 0.4894 GB, free: 3.609 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.177e-05/0.4641, allocations: 301.1 kB / 0.4897 GB, free: 3.312 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008153/0.4649, allocations: 399.8 kB / 0.4901 GB, free: 2.922 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.4661, allocations: 1.093 MB / 0.4911 GB, free: 1.504 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002106/0.4683, allocations: 1.618 MB / 0.4927 GB, free: 15.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.4683, allocations: 8 kB / 0.4927 GB, free: 15.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003307/0.4716, allocations: 2.212 MB / 0.4949 GB, free: 13.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.4716, allocations: 16 kB / 0.4949 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001904/0.4718, allocations: 164 kB / 0.4951 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.011e-05/0.4719, allocations: 36.75 kB / 0.4951 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.473, allocations: 359.4 kB / 0.4954 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.621e-05/0.473, allocations: 47.8 kB / 0.4955 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.4748, allocations: 186.2 kB / 0.4957 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/0.475, allocations: 128 kB / 0.4958 GB, free: 12.42 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.001271/0.4763, allocations: 0.7158 MB / 0.4965 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006145/0.4769, allocations: 0.7217 MB / 0.4972 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004736/0.4816, allocations: 2.165 MB / 0.4993 GB, free: 8.805 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.4816, allocations: 8 kB / 0.4993 GB, free: 8.797 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4817, allocations: 0 / 0.4993 GB, free: 8.797 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.4817, allocations: 3.984 kB / 0.4993 GB, free: 8.793 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005346/0.487, allocations: 3.631 MB / 0.5028 GB, free: 5.113 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001757/0.4872, allocations: 147.9 kB / 0.503 GB, free: 4.969 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007212/0.4879, allocations: 147.8 kB / 0.5031 GB, free: 4.824 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.488, allocations: 0 / 0.5031 GB, free: 4.824 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.103e-05/0.4881, allocations: 60 kB / 0.5032 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.4881, allocations: 4.062 kB / 0.5032 GB, free: 4.762 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4881, allocations: 7.984 kB / 0.5032 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003301/0.4914, allocations: 2.164 MB / 0.5053 GB, free: 2.559 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.4927, allocations: 0.8163 MB / 0.5061 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005246/0.4933, allocations: 12 kB / 0.5061 GB, free: 1.703 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.4944, allocations: 43.95 kB / 0.5062 GB, free: 1.66 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002178/0.4946, allocations: 96.42 kB / 0.5063 GB, free: 1.566 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.4948, allocations: 71.98 kB / 0.5063 GB, free: 1.496 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004618/0.4994, allocations: 3.633 MB / 0.5099 GB, free: 13.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4994, allocations: 0 / 0.5099 GB, free: 13.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002305/0.5017, allocations: 1.089 MB / 0.5109 GB, free: 12.8 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.001606/0.5033, allocations: 1.199 MB / 0.5121 GB, free: 11.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002342/0.5057, allocations: 1.428 MB / 0.5135 GB, free: 10.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5057, allocations: 0 / 0.5135 GB, free: 10.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.5068, allocations: 0.7744 MB / 0.5143 GB, free: 9.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003412/0.5102, allocations: 0.9181 MB / 0.5152 GB, free: 8.598 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/0.5224, allocations: 9.794 MB / 0.5247 GB, free: 14.77 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001788/0.5242, allocations: 2.608 MB / 0.5273 GB, free: 12.14 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002652/0.5269, allocations: 0.6888 MB / 0.5279 GB, free: 11.45 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004246/0.5273, allocations: 283.4 kB / 0.5282 GB, free: 11.18 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5273, allocations: 4 kB / 0.5282 GB, free: 11.17 MB / 462.1 MB Notification: Performance of Templates: time 0.2298/0.7571, allocations: 53.65 MB / 0.5806 GB, free: 155.5 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","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches