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.00151/0.00151, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001855/0.001855, allocations: 187 kB / 18.66 MB, free: 4.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.565/1.565, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001369/0.001369, allocations: 59.92 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09826/0.09964, allocations: 46.61 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1967/0.2964, allocations: 14.61 MB / 389.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02347/0.3199, allocations: 19.8 MB / 409.5 MB, free: 6.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003588/0.3236, allocations: 90.56 kB / 409.6 MB, free: 5.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004076/0.3277, allocations: 1.243 MB / 410.9 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0112/0.3389, allocations: 2.337 MB / 413.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005749/0.3447, allocations: 1.378 MB / 414.6 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01207/0.3568, allocations: 6.47 MB / 421.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001116/0.358, allocations: 475.4 kB / 421.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002416/0.3604, allocations: 1.038 MB / 422.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001399/0.3618, allocations: 1.119 MB / 423.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001821/0.362, allocations: 74.97 kB / 423.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005005/0.367, allocations: 1.157 MB / 424.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003555/0.3674, allocations: 341.5 kB / 425.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00172/0.3691, allocations: 1.44 MB / 426.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006425/0.3756, allocations: 4.004 MB / 430.7 MB, free: 7.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3756, allocations: 4 kB / 430.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3756, allocations: 0 / 430.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.079e-05/0.3757, allocations: 0 / 430.7 MB, free: 7.895 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.005164/0.3808, allocations: 3.845 MB / 434.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.3809, allocations: 8.031 kB / 434.5 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004515/0.3813, allocations: 414.9 kB / 435 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00316/0.3845, allocations: 2.483 MB / 437.4 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/0.3846, allocations: 40.94 kB / 437.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.3847, allocations: 59.91 kB / 437.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.3861, allocations: 0.7303 MB / 438.3 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.3861, allocations: 0 / 438.3 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.726e-05/0.3862, allocations: 20 kB / 438.3 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.524e-05/0.3862, allocations: 23.98 kB / 438.3 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.3878, allocations: 0.8164 MB / 439.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004933/0.3927, allocations: 3.122 MB / 442.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.3939, allocations: 0.5674 MB / 442.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009997/0.395, allocations: 0.6438 MB / 443.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02976/0.4247, allocations: 30.19 MB / 473.6 MB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007743/0.4255, allocations: 361.5 kB / 474 MB, free: 8.215 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.325e-06/0.4256, allocations: 0 / 474 MB, free: 8.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002341/0.4279, allocations: 1.12 MB / 475.1 MB, free: 7.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.04e-05/0.428, allocations: 59.41 kB / 475.2 MB, free: 7.016 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003919/0.4319, allocations: 3.107 MB / 478.3 MB, free: 3.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.394e-05/0.432, allocations: 33.7 kB / 478.3 MB, free: 3.871 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001255/0.4332, allocations: 1.577 MB / 479.9 MB, free: 2.281 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.4334, allocations: 165.7 kB / 480.1 MB, free: 2.117 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003248/0.4337, allocations: 226.1 kB / 480.3 MB, free: 1.891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.4339, allocations: 341.9 kB / 480.6 MB, free: 1.551 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005995/0.4345, allocations: 241.9 kB / 480.8 MB, free: 1.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008323/0.4353, allocations: 0.602 MB / 481.4 MB, free: 0.5352 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001419/0.4368, allocations: 0.9023 MB / 482.4 MB, free: 15.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.4368, allocations: 4 kB / 482.4 MB, free: 15.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002163/0.4389, allocations: 1.249 MB / 483.6 MB, free: 14.2 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.439, allocations: 16 kB / 483.6 MB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/0.4391, allocations: 83.98 kB / 483.7 MB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.9e-05/0.4391, allocations: 20 kB / 483.7 MB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007084/0.4399, allocations: 203.6 kB / 483.9 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.672e-05/0.4399, allocations: 27.75 kB / 483.9 MB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009715/0.4409, allocations: 113.8 kB / 484.1 MB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.441, allocations: 64 kB / 484.1 MB, free: 13.68 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.0007791/0.4418, allocations: 461.4 kB / 484.6 MB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003803/0.4422, allocations: 399.1 kB / 485 MB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002611/0.4448, allocations: 1.222 MB / 486.2 MB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.4448, allocations: 4 kB / 486.2 MB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.4448, allocations: 0 / 486.2 MB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.4448, allocations: 3.984 kB / 486.2 MB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003345/0.4482, allocations: 2.155 MB / 488.3 MB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-05/0.4483, allocations: 71.98 kB / 488.4 MB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004656/0.4488, allocations: 91.92 kB / 488.5 MB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-06/0.4488, allocations: 4 kB / 488.5 MB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.085e-05/0.4488, allocations: 35.98 kB / 488.5 MB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/0.4489, allocations: 4 kB / 488.5 MB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4489, allocations: 3.938 kB / 488.6 MB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.4511, allocations: 1.321 MB / 489.9 MB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007201/0.4518, allocations: 496 kB / 490.4 MB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000274/0.4521, allocations: 15.88 kB / 490.4 MB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006469/0.4527, allocations: 31.95 kB / 490.4 MB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/0.4529, allocations: 59.95 kB / 490.5 MB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.09e-05/0.453, allocations: 43.92 kB / 490.5 MB, free: 7.152 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002672/0.4557, allocations: 2.023 MB / 492.5 MB, free: 5.137 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4557, allocations: 0 / 492.5 MB, free: 5.137 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001282/0.457, allocations: 0.5973 MB / 493.1 MB, free: 4.539 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.001079/0.4581, allocations: 0.7778 MB / 493.9 MB, free: 3.758 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001557/0.4596, allocations: 0.8178 MB / 494.7 MB, free: 2.914 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4596, allocations: 0 / 494.7 MB, free: 2.914 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007698/0.4604, allocations: 451.2 kB / 495.2 MB, free: 2.449 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001759/0.4622, allocations: 0.5417 MB / 495.7 MB, free: 1.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006156/0.4683, allocations: 4.528 MB / 0.4885 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001178/0.4695, allocations: 1.71 MB / 0.4902 GB, free: 11.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001028/0.4706, allocations: 365.4 kB / 0.4905 GB, free: 11.24 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002358/0.4708, allocations: 151.4 kB / 0.4907 GB, free: 11.09 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4708, allocations: 0 / 0.4907 GB, free: 11.09 MB / 430.1 MB Notification: Performance of Templates: time 0.0526/0.5234, allocations: 32.17 MB / 0.5221 GB, free: 10.87 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