Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,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.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,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.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 108.7 kB / 17.93 MB, free: 5.422 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.001387/0.001387, allocations: 189.8 kB / 18.86 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.455/1.455, allocations: 205.1 MB / 224.7 MB, free: 12.45 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.001154/0.001153, allocations: 56.25 kB / 280.8 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09193/0.09309, allocations: 46.64 MB / 327.4 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01229/0.1054, allocations: 13.9 MB / 341.3 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02134/0.1268, allocations: 19.49 MB / 360.8 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002969/0.1298, allocations: 27.81 kB / 360.8 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003801/0.1337, allocations: 1.055 MB / 361.9 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009064/0.1428, allocations: 1.946 MB / 363.8 MB, free: 236 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005198/0.148, allocations: 1.199 MB / 365 MB, free: 15.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009517/0.1576, allocations: 6.41 MB / 371.5 MB, free: 8.598 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008054/0.1584, allocations: 465.1 kB / 371.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001425/0.1599, allocations: 0.9795 MB / 372.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.161, allocations: 1.083 MB / 374 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001596/0.1611, allocations: 76 kB / 374 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004176/0.1653, allocations: 1.159 MB / 375.2 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004012/0.1657, allocations: 333.5 kB / 375.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001645/0.1674, allocations: 1.389 MB / 376.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003084/0.1705, allocations: 2.809 MB / 379.7 MB, free: 268 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1705, allocations: 0 / 379.7 MB, free: 268 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1705, allocations: 0 / 379.7 MB, free: 268 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.04e-05/0.1706, allocations: 0 / 379.7 MB, free: 268 kB / 318.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.1857/0.3563, allocations: 3.699 MB / 383.4 MB, free: 54.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.865e-05/0.3564, allocations: 9.531 kB / 383.4 MB, free: 54.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006455/0.357, allocations: 404.1 kB / 383.8 MB, free: 53.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003836/0.3609, allocations: 2.45 MB / 386.3 MB, free: 52.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.552e-05/0.3609, allocations: 39.17 kB / 386.3 MB, free: 52.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.3611, allocations: 58.5 kB / 386.4 MB, free: 52.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.3626, allocations: 0.7291 MB / 387.1 MB, free: 52.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.3626, allocations: 3.938 kB / 387.1 MB, free: 52.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.249e-05/0.3627, allocations: 25.39 kB / 387.1 MB, free: 52.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.677e-05/0.3627, allocations: 20.25 kB / 387.2 MB, free: 52.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.3643, allocations: 0.8177 MB / 388 MB, free: 52.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005594/0.3699, allocations: 3.05 MB / 391 MB, free: 50.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.3711, allocations: 0.5738 MB / 391.6 MB, free: 50.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009566/0.3721, allocations: 0.6463 MB / 392.2 MB, free: 49.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02396/0.3961, allocations: 30.19 MB / 422.4 MB, free: 20.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006809/0.3968, allocations: 369.5 kB / 422.8 MB, free: 19.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 4.469e-06/0.3968, allocations: 0 / 422.8 MB, free: 19.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002586/0.3994, allocations: 1.099 MB / 423.9 MB, free: 18.67 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.3995, allocations: 59.41 kB / 424 MB, free: 18.6 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004087/0.4036, allocations: 2.952 MB / 426.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.766e-05/0.4037, allocations: 37.7 kB / 426.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000927/0.4046, allocations: 1.493 MB / 428.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.4048, allocations: 165.7 kB / 428.6 MB, free: 13.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002758/0.405, allocations: 226.1 kB / 428.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.644e-05/0.4051, allocations: 341.9 kB / 429.2 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005165/0.4056, allocations: 245.7 kB / 429.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006326/0.4063, allocations: 0.5933 MB / 430 MB, free: 12.37 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.4075, allocations: 0.902 MB / 430.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.4076, allocations: 4 kB / 430.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002363/0.4099, allocations: 1.229 MB / 432.1 MB, free: 10.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/0.41, allocations: 12 kB / 432.1 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000103/0.4101, allocations: 80 kB / 432.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.819e-05/0.4101, allocations: 26.09 kB / 432.2 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006531/0.4108, allocations: 204 kB / 432.4 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.285e-05/0.4108, allocations: 31.67 kB / 432.5 MB, free: 9.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/0.4126, allocations: 114.9 kB / 432.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.4127, allocations: 64 kB / 432.6 MB, free: 9.551 MB / 318.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.0008319/0.4136, allocations: 433.5 kB / 433.1 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006151/0.4142, allocations: 379.4 kB / 433.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00262/0.4168, allocations: 1.2 MB / 434.6 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.4168, allocations: 7.938 kB / 434.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.4168, allocations: 4 kB / 434.7 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.4169, allocations: 4 kB / 434.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/0.42, allocations: 2.095 MB / 436.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.512e-05/0.4201, allocations: 71.94 kB / 436.8 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004416/0.4206, allocations: 91.86 kB / 436.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.727e-06/0.4206, allocations: 11.92 kB / 436.9 MB, free: 5.195 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.326e-05/0.4206, allocations: 28 kB / 436.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.872e-06/0.4207, allocations: 4.062 kB / 437 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4207, allocations: 7.938 kB / 437 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.4226, allocations: 1.301 MB / 438.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007936/0.4234, allocations: 476.2 kB / 438.7 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003038/0.4237, allocations: 12 kB / 438.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006427/0.4244, allocations: 35.95 kB / 438.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.4245, allocations: 59.95 kB / 438.8 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.658e-05/0.4246, allocations: 42.89 kB / 438.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001928/0.4266, allocations: 1.92 MB / 440.8 MB, free: 1.273 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4266, allocations: 0 / 440.8 MB, free: 1.273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001417/0.428, allocations: 0.5855 MB / 441.4 MB, free: 0.6875 MB / 318.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.001233/0.4292, allocations: 0.7783 MB / 442.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001907/0.4311, allocations: 0.8293 MB / 443 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.4312, allocations: 4 kB / 443 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007887/0.432, allocations: 456.2 kB / 443.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002373/0.4344, allocations: 0.5057 MB / 443.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007707/0.4421, allocations: 5.275 MB / 449.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001365/0.4435, allocations: 1.669 MB / 450.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004386/0.4439, allocations: 155.4 kB / 451 MB, free: 6.922 MB / 334.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4439, allocations: 0 / 451 MB, free: 6.922 MB / 334.1 MB Notification: Performance of Templates: time 0.06313/0.5071, allocations: 37.53 MB / 488.6 MB, free: 1.348 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches