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.001473/0.001473, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001617/0.001617, allocations: 189.3 kB / 18.19 MB, free: 5.395 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.305/1.305, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001439/0.001439, allocations: 51.94 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09437, allocations: 46.63 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02046/0.1149, allocations: 25.04 MB / 351.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02393/0.1389, allocations: 21.1 MB / 372.9 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004626/0.1435, allocations: 59.62 kB / 373 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005382/0.149, allocations: 1.469 MB / 374.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01134/0.1603, allocations: 2.721 MB / 377.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006556/0.1669, allocations: 1.363 MB / 378.5 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1688/0.3358, allocations: 12.5 MB / 391 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001981/0.3378, allocations: 0.8665 MB / 391.9 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004585/0.3424, allocations: 1.862 MB / 393.8 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00336/0.3458, allocations: 2.051 MB / 395.8 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005135/0.3463, allocations: 137.5 kB / 395.9 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004465/0.3508, allocations: 1.222 MB / 397.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006074/0.3514, allocations: 0.613 MB / 397.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00344/0.3549, allocations: 2.648 MB / 400.4 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006778/0.3617, allocations: 6.607 MB / 407 MB, free: 9.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3617, allocations: 0 / 407 MB, free: 9.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3617, allocations: 0 / 407 MB, free: 9.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.173e-05/0.3618, allocations: 0 / 407 MB, free: 9.191 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.007183/0.369, allocations: 6.738 MB / 413.8 MB, free: 2.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.369, allocations: 11.78 kB / 413.8 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006493/0.3697, allocations: 0.7481 MB / 414.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005842/0.3755, allocations: 4.667 MB / 419.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.816e-05/0.3756, allocations: 66 kB / 419.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.3758, allocations: 103.3 kB / 419.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002155/0.378, allocations: 1.309 MB / 420.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.378, allocations: 4.734 kB / 420.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.3782, allocations: 36 kB / 420.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.44e-05/0.3782, allocations: 41.66 kB / 420.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002315/0.3805, allocations: 1.484 MB / 422.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008858/0.3894, allocations: 5.635 MB / 427.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.391, allocations: 0.993 MB / 428.9 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.3925, allocations: 1.223 MB / 430.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05371/0.4462, allocations: 59.94 MB / 490 MB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009889/0.4472, allocations: 0.5598 MB / 490.6 MB, free: 14.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 4.137e-06/0.4473, allocations: 0 / 490.6 MB, free: 14.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003263/0.4505, allocations: 1.886 MB / 492.5 MB, free: 12.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.4506, allocations: 59.97 kB / 492.5 MB, free: 12.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006651/0.4572, allocations: 5.628 MB / 498.2 MB, free: 6.695 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000146/0.4574, allocations: 41.69 kB / 498.2 MB, free: 6.648 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002199/0.4596, allocations: 2.936 MB / 0.4894 GB, free: 3.707 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002945/0.4599, allocations: 298.1 kB / 0.4897 GB, free: 3.418 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005178/0.4605, allocations: 424.5 kB / 0.4901 GB, free: 3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.624e-05/0.4606, allocations: 305.1 kB / 0.4904 GB, free: 2.699 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007948/0.4614, allocations: 411.7 kB / 0.4908 GB, free: 2.301 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.4625, allocations: 1.083 MB / 0.4918 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002051/0.4646, allocations: 1.611 MB / 0.4934 GB, free: 14.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.191e-05/0.4646, allocations: 8 kB / 0.4934 GB, free: 14.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003546/0.4682, allocations: 2.22 MB / 0.4956 GB, free: 12.73 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.4682, allocations: 16 kB / 0.4956 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001968/0.4684, allocations: 163.9 kB / 0.4957 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.752e-05/0.4685, allocations: 35.98 kB / 0.4958 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.4696, allocations: 356 kB / 0.4961 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.011e-05/0.4697, allocations: 55.78 kB / 0.4962 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002252/0.4719, allocations: 186.1 kB / 0.4963 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002116/0.4721, allocations: 124 kB / 0.4965 GB, free: 11.81 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.001677/0.4738, allocations: 0.7238 MB / 0.4972 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009468/0.4748, allocations: 0.7178 MB / 0.4979 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005032/0.4798, allocations: 2.163 MB / 0.5 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.4798, allocations: 15.92 kB / 0.5 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.4799, allocations: 0 / 0.5 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.4799, allocations: 0 / 0.5 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005824/0.4857, allocations: 3.624 MB / 0.5035 GB, free: 4.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001635/0.4859, allocations: 140.1 kB / 0.5037 GB, free: 4.355 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007144/0.4866, allocations: 147.8 kB / 0.5038 GB, free: 4.211 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.4866, allocations: 4 kB / 0.5038 GB, free: 4.207 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/0.4867, allocations: 63.98 kB / 0.5039 GB, free: 4.145 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.4868, allocations: 0 / 0.5039 GB, free: 4.145 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4868, allocations: 4 kB / 0.5039 GB, free: 4.141 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003457/0.4902, allocations: 2.169 MB / 0.506 GB, free: 1.941 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001474/0.4917, allocations: 0.8278 MB / 0.5068 GB, free: 1.086 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007296/0.4925, allocations: 12 kB / 0.5068 GB, free: 1.074 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.4937, allocations: 31.97 kB / 0.5068 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002408/0.494, allocations: 104.5 kB / 0.5069 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/0.4941, allocations: 71.98 kB / 0.507 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004869/0.499, allocations: 3.629 MB / 0.5106 GB, free: 13.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.499, allocations: 0 / 0.5106 GB, free: 13.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002466/0.5015, allocations: 1.093 MB / 0.5116 GB, free: 12.18 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.001558/0.5031, allocations: 1.183 MB / 0.5128 GB, free: 11.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002564/0.5056, allocations: 1.463 MB / 0.5142 GB, free: 9.695 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5056, allocations: 4 kB / 0.5142 GB, free: 9.691 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.5067, allocations: 0.7666 MB / 0.515 GB, free: 8.875 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003359/0.51, allocations: 0.9983 MB / 0.5159 GB, free: 7.875 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/0.5215, allocations: 9.8 MB / 0.5255 GB, free: 14.05 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001786/0.5233, allocations: 2.608 MB / 0.5281 GB, free: 11.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002528/0.5258, allocations: 0.6888 MB / 0.5287 GB, free: 10.72 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004158/0.5263, allocations: 283.4 kB / 0.529 GB, free: 10.45 MB / 462.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5263, allocations: 4 kB / 0.529 GB, free: 10.45 MB / 462.1 MB Notification: Performance of Templates: time 0.2423/0.7686, allocations: 55.14 MB / 0.5828 GB, free: 154.9 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