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.001348/0.001348, allocations: 113.4 kB / 17.73 MB, free: 5.344 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.001156/0.001156, allocations: 184.1 kB / 18.66 MB, free: 4.422 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.406/1.406, 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.001116/0.001116, allocations: 55.92 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09217, allocations: 46.61 MB / 375.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1992/0.2914, allocations: 14.03 MB / 389.2 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02232/0.3137, allocations: 19.73 MB / 408.9 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002566/0.3163, allocations: 90.22 kB / 409 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003752/0.3202, allocations: 1.212 MB / 410.2 MB, free: 5.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008419/0.3286, allocations: 2.286 MB / 412.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005237/0.3339, allocations: 1.397 MB / 413.9 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01082/0.3447, allocations: 6.336 MB / 420.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009236/0.3457, allocations: 458.7 kB / 420.7 MB, free: 416 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.3479, allocations: 1.011 MB / 421.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001241/0.3491, allocations: 1.083 MB / 422.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001619/0.3493, allocations: 74.25 kB / 422.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004334/0.3536, allocations: 1.164 MB / 424 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002735/0.3539, allocations: 333.6 kB / 424.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.3552, allocations: 1.378 MB / 425.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004691/0.3599, allocations: 3.795 MB / 429.5 MB, free: 9.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3599, allocations: 0 / 429.5 MB, free: 9.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3599, allocations: 0 / 429.5 MB, free: 9.125 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.987e-05/0.3599, allocations: 0 / 429.5 MB, free: 9.125 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.004803/0.3647, allocations: 3.689 MB / 433.2 MB, free: 5.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.3648, allocations: 12.03 kB / 433.2 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004018/0.3652, allocations: 403.1 kB / 433.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003053/0.3683, allocations: 2.434 MB / 436 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.3683, allocations: 40.94 kB / 436.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.3684, allocations: 55.94 kB / 436.1 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.3697, allocations: 0.7265 MB / 436.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3698, allocations: 0 / 436.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.58e-05/0.3698, allocations: 24 kB / 436.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.382e-05/0.3699, allocations: 23.98 kB / 436.9 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.3714, allocations: 0.8124 MB / 437.7 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004702/0.3761, allocations: 3.071 MB / 440.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.3772, allocations: 0.579 MB / 441.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009602/0.3782, allocations: 0.6438 MB / 442 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02775/0.406, allocations: 30.17 MB / 472.2 MB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007291/0.4067, allocations: 373.4 kB / 472.5 MB, free: 9.711 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.314e-06/0.4067, allocations: 0 / 472.5 MB, free: 9.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002111/0.4089, allocations: 1.089 MB / 473.6 MB, free: 8.613 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.4089, allocations: 63.39 kB / 473.7 MB, free: 8.539 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003409/0.4123, allocations: 2.952 MB / 476.6 MB, free: 5.578 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.005e-05/0.4124, allocations: 33.7 kB / 476.7 MB, free: 5.539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.4136, allocations: 1.497 MB / 478.2 MB, free: 4.031 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.4138, allocations: 165.7 kB / 478.3 MB, free: 3.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002874/0.4141, allocations: 238.1 kB / 478.5 MB, free: 3.629 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.4142, allocations: 341.9 kB / 478.9 MB, free: 3.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005575/0.4148, allocations: 237.9 kB / 479.1 MB, free: 3.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000869/0.4156, allocations: 0.602 MB / 479.7 MB, free: 2.277 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.417, allocations: 0.8935 MB / 480.6 MB, free: 1.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.417, allocations: 4 kB / 480.6 MB, free: 1.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001964/0.419, allocations: 1.237 MB / 481.9 MB, free: 15.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.4191, allocations: 12 kB / 481.9 MB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001072/0.4192, allocations: 80 kB / 481.9 MB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.116e-05/0.4192, allocations: 16 kB / 482 MB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007096/0.4199, allocations: 205.1 kB / 482.2 MB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.403e-05/0.42, allocations: 27.86 kB / 482.2 MB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008654/0.4208, allocations: 103.1 kB / 482.3 MB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.4209, allocations: 68 kB / 482.4 MB, free: 15.46 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.0006133/0.4216, allocations: 433.4 kB / 482.8 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003424/0.4219, allocations: 391.3 kB / 483.2 MB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002512/0.4244, allocations: 1.209 MB / 484.4 MB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.4245, allocations: 4 kB / 484.4 MB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.4245, allocations: 4.5 kB / 484.4 MB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4245, allocations: 3.938 kB / 484.4 MB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003033/0.4275, allocations: 2.108 MB / 486.5 MB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.945e-05/0.4276, allocations: 68 kB / 486.6 MB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004752/0.4281, allocations: 94.17 kB / 486.6 MB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.4281, allocations: 4 kB / 486.6 MB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-05/0.4282, allocations: 35.98 kB / 486.7 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.4282, allocations: 8.062 kB / 486.7 MB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4282, allocations: 0 / 486.7 MB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002122/0.4303, allocations: 1.293 MB / 488 MB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005963/0.4309, allocations: 484.2 kB / 488.5 MB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002747/0.4312, allocations: 8 kB / 488.5 MB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006533/0.4319, allocations: 36.02 kB / 488.5 MB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.432, allocations: 55.95 kB / 488.6 MB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.318e-05/0.4321, allocations: 43.92 kB / 488.6 MB, free: 9.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002261/0.4344, allocations: 1.92 MB / 490.5 MB, free: 7.152 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4344, allocations: 0 / 490.5 MB, free: 7.152 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001239/0.4356, allocations: 0.5894 MB / 491.1 MB, free: 6.562 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.001045/0.4367, allocations: 0.7778 MB / 491.9 MB, free: 5.777 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.4382, allocations: 0.8171 MB / 492.7 MB, free: 4.934 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4382, allocations: 0 / 492.7 MB, free: 4.934 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007473/0.439, allocations: 452.2 kB / 493.1 MB, free: 4.469 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.4406, allocations: 0.5182 MB / 493.7 MB, free: 3.957 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005542/0.4462, allocations: 4.316 MB / 498 MB, free: 15.6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001128/0.4473, allocations: 1.673 MB / 499.7 MB, free: 13.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009126/0.4482, allocations: 357.3 kB / 500 MB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002193/0.4485, allocations: 151.4 kB / 0.4884 GB, free: 13.4 MB / 430.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4485, allocations: 0 / 0.4884 GB, free: 13.4 MB / 430.1 MB Notification: Performance of Templates: time 0.05421/0.5027, allocations: 31.38 MB / 0.5191 GB, free: 13.96 MB / 462.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches