Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001157, allocations: 110.5 kB / 17.73 MB, free: 5.363 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.001193/0.001193, allocations: 179.1 kB / 18.66 MB, free: 4.445 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.445/1.445, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001268/0.001268, allocations: 47.92 kB / 328.5 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1013, allocations: 46.63 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2047/0.306, allocations: 14.61 MB / 389.7 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02447/0.3306, allocations: 19.8 MB / 409.5 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003509/0.3341, allocations: 90 kB / 409.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003547/0.3377, allocations: 1.235 MB / 410.9 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008574/0.3463, allocations: 2.313 MB / 413.2 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005193/0.3515, allocations: 1.381 MB / 414.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01119/0.3627, allocations: 6.465 MB / 421 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007951/0.3635, allocations: 468.9 kB / 421.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001877/0.3654, allocations: 1.04 MB / 422.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001448/0.3669, allocations: 1.111 MB / 423.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002369/0.3671, allocations: 74.84 kB / 423.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00503/0.3722, allocations: 1.165 MB / 424.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003481/0.3725, allocations: 337.5 kB / 425.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001779/0.3743, allocations: 1.44 MB / 426.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007037/0.3814, allocations: 4.005 MB / 430.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3814, allocations: 0 / 430.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.3814, allocations: 7.984 kB / 430.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.612e-05/0.3815, allocations: 0 / 430.7 MB, free: 7.941 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.00572/0.3872, allocations: 3.845 MB / 434.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.3873, allocations: 8.031 kB / 434.5 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004723/0.3878, allocations: 414.9 kB / 434.9 MB, free: 3.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003266/0.391, allocations: 2.479 MB / 437.4 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.3911, allocations: 40.94 kB / 437.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.3913, allocations: 63.84 kB / 437.5 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.3926, allocations: 0.7381 MB / 438.2 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.3927, allocations: 0 / 438.2 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.447e-05/0.3927, allocations: 20 kB / 438.2 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.256e-05/0.3928, allocations: 23.98 kB / 438.3 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.3945, allocations: 0.8163 MB / 439.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004889/0.3994, allocations: 3.114 MB / 442.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.4006, allocations: 0.576 MB / 442.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009927/0.4016, allocations: 0.6438 MB / 443.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02974/0.4314, allocations: 30.19 MB / 473.6 MB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007937/0.4322, allocations: 368 kB / 474 MB, free: 8.254 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.4322, allocations: 0 / 474 MB, free: 8.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002435/0.4346, allocations: 1.116 MB / 475.1 MB, free: 7.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.4347, allocations: 59.41 kB / 475.1 MB, free: 7.059 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003734/0.4385, allocations: 3.111 MB / 478.3 MB, free: 3.949 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.4386, allocations: 29.7 kB / 478.3 MB, free: 3.914 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.4399, allocations: 1.577 MB / 479.9 MB, free: 2.324 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.4401, allocations: 169.7 kB / 480 MB, free: 2.156 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002988/0.4404, allocations: 226.1 kB / 480.2 MB, free: 1.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.4405, allocations: 341.9 kB / 480.6 MB, free: 1.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005953/0.4411, allocations: 241.9 kB / 480.8 MB, free: 1.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008194/0.442, allocations: 0.602 MB / 481.4 MB, free: 0.5742 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.4435, allocations: 0.8974 MB / 482.3 MB, free: 15.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.4435, allocations: 4 kB / 482.3 MB, free: 15.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002255/0.4458, allocations: 1.257 MB / 483.6 MB, free: 14.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.4458, allocations: 8 kB / 483.6 MB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001266/0.4459, allocations: 88.11 kB / 483.7 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.455e-05/0.446, allocations: 20 kB / 483.7 MB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007481/0.4467, allocations: 195.7 kB / 483.9 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.54e-05/0.4468, allocations: 23.88 kB / 483.9 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009478/0.4477, allocations: 118.9 kB / 484 MB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.4478, allocations: 60 kB / 484.1 MB, free: 13.73 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0007183/0.4485, allocations: 461.5 kB / 484.5 MB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003586/0.4489, allocations: 403.1 kB / 484.9 MB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002724/0.4516, allocations: 1.219 MB / 486.1 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.4517, allocations: 7.984 kB / 486.1 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.4517, allocations: 0 / 486.1 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.4517, allocations: 3.984 kB / 486.2 MB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003211/0.4549, allocations: 2.155 MB / 488.3 MB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001026/0.455, allocations: 71.98 kB / 488.4 MB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004906/0.4555, allocations: 95.92 kB / 488.5 MB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.4555, allocations: 4.875 kB / 488.5 MB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-05/0.4556, allocations: 28 kB / 488.5 MB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.4556, allocations: 4 kB / 488.5 MB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4556, allocations: 0 / 488.5 MB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.458, allocations: 1.329 MB / 489.8 MB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007114/0.4587, allocations: 496 kB / 490.3 MB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003012/0.459, allocations: 12 kB / 490.3 MB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006885/0.4597, allocations: 34.08 kB / 490.4 MB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.4599, allocations: 59.95 kB / 490.4 MB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.912e-05/0.4599, allocations: 39.94 kB / 490.5 MB, free: 7.203 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002523/0.4625, allocations: 2.023 MB / 492.5 MB, free: 5.188 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4625, allocations: 64 / 492.5 MB, free: 5.188 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001307/0.4638, allocations: 0.6051 MB / 493.1 MB, free: 4.582 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001155/0.4649, allocations: 0.7715 MB / 493.9 MB, free: 3.805 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.4666, allocations: 0.8216 MB / 494.7 MB, free: 2.957 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4666, allocations: 4.125 kB / 494.7 MB, free: 2.953 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007651/0.4674, allocations: 447.2 kB / 495.1 MB, free: 2.492 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.4692, allocations: 0.5415 MB / 495.7 MB, free: 1.949 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006201/0.4754, allocations: 4.516 MB / 0.4885 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.4766, allocations: 1.718 MB / 0.4901 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009816/0.4775, allocations: 361.4 kB / 0.4905 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.4778, allocations: 151.4 kB / 0.4906 GB, free: 11.14 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4778, allocations: 4 kB / 0.4906 GB, free: 11.13 MB / 430.1 MB Notification: Performance of Templates: time 0.05393/0.5317, allocations: 32.17 MB / 0.5221 GB, free: 10.9 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches