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.001556/0.001556, allocations: 113.3 kB / 18.4 MB, free: 4.688 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.001692/0.001692, allocations: 189.2 kB / 19.33 MB, free: 3.77 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.533/1.533, allocations: 205.1 MB / 225.2 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.001437/0.001437, allocations: 51.94 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.0979, allocations: 46.61 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2348/0.3327, allocations: 14.03 MB / 389.8 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02997/0.3628, allocations: 19.73 MB / 409.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004372/0.3672, allocations: 91.12 kB / 409.7 MB, free: 6.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004916/0.3722, allocations: 1.201 MB / 410.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01335/0.3856, allocations: 2.262 MB / 413.1 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00836/0.394, allocations: 1.387 MB / 414.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01421/0.4082, allocations: 6.347 MB / 420.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001298/0.4096, allocations: 456.5 kB / 421.3 MB, free: 452 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002597/0.4122, allocations: 1.003 MB / 422.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002685/0.4149, allocations: 1.086 MB / 423.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006309/0.4155, allocations: 74.5 kB / 423.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00881/0.4244, allocations: 1.164 MB / 424.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009042/0.4253, allocations: 329.6 kB / 424.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003337/0.4287, allocations: 1.382 MB / 426.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009595/0.4383, allocations: 3.798 MB / 430.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4384, allocations: 0 / 430.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4384, allocations: 0 / 430.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001596/0.4385, allocations: 3.938 kB / 430.1 MB, free: 9.16 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.007445/0.446, allocations: 3.689 MB / 433.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.4461, allocations: 8.031 kB / 433.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007145/0.4468, allocations: 407.1 kB / 434.2 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003948/0.4507, allocations: 2.426 MB / 436.6 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.336e-05/0.4508, allocations: 48.92 kB / 436.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.451, allocations: 48 kB / 436.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.4525, allocations: 0.7265 MB / 437.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.4525, allocations: 3.938 kB / 437.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.726e-05/0.4526, allocations: 20 kB / 437.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.72e-05/0.4526, allocations: 19.98 kB / 437.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001557/0.4542, allocations: 0.8202 MB / 438.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0056/0.4598, allocations: 3.067 MB / 441.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.461, allocations: 0.5751 MB / 442 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000948/0.462, allocations: 0.6447 MB / 442.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02932/0.4914, allocations: 30.17 MB / 472.8 MB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00076/0.4922, allocations: 365.5 kB / 473.2 MB, free: 9.758 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.296e-06/0.4922, allocations: 0 / 473.2 MB, free: 9.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002515/0.4947, allocations: 1.097 MB / 474.2 MB, free: 8.652 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.4948, allocations: 67.39 kB / 474.3 MB, free: 8.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004552/0.4993, allocations: 2.948 MB / 477.3 MB, free: 5.617 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.397e-05/0.4994, allocations: 29.7 kB / 477.3 MB, free: 5.582 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00127/0.5007, allocations: 1.501 MB / 478.8 MB, free: 4.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.5009, allocations: 165.7 kB / 479 MB, free: 3.906 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003246/0.5012, allocations: 234.1 kB / 479.2 MB, free: 3.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.5013, allocations: 342 kB / 479.5 MB, free: 3.332 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005632/0.5019, allocations: 241.8 kB / 479.8 MB, free: 3.094 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007826/0.5027, allocations: 0.5942 MB / 480.3 MB, free: 2.324 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.5042, allocations: 0.9013 MB / 481.2 MB, free: 1.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/0.5042, allocations: 4 kB / 481.3 MB, free: 1.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002454/0.5066, allocations: 1.236 MB / 482.5 MB, free: 4 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.411e-05/0.5067, allocations: 12.05 kB / 482.5 MB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001149/0.5068, allocations: 80 kB / 482.6 MB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.23e-05/0.5069, allocations: 16 kB / 482.6 MB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007112/0.5076, allocations: 203.6 kB / 482.8 MB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.602e-05/0.5076, allocations: 28.17 kB / 482.8 MB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.5087, allocations: 103.1 kB / 482.9 MB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.5089, allocations: 68 kB / 483 MB, free: 15.5 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.0007005/0.5096, allocations: 445.4 kB / 483.4 MB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005823/0.5102, allocations: 383.3 kB / 483.8 MB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002691/0.5129, allocations: 1.205 MB / 485 MB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.5129, allocations: 4 kB / 485 MB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.5129, allocations: 3.938 kB / 485 MB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.5129, allocations: 3.984 kB / 485 MB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003451/0.5164, allocations: 2.112 MB / 487.1 MB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.404e-05/0.5165, allocations: 68 kB / 487.2 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004659/0.5169, allocations: 91.84 kB / 487.3 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.517, allocations: 4 kB / 487.3 MB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.695e-05/0.517, allocations: 32 kB / 487.3 MB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.517, allocations: 4 kB / 487.3 MB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.517, allocations: 0 / 487.3 MB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002244/0.5193, allocations: 1.289 MB / 488.6 MB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007758/0.5201, allocations: 484.2 kB / 489.1 MB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004328/0.5205, allocations: 11.98 kB / 489.1 MB, free: 9.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007705/0.5213, allocations: 37.59 kB / 489.1 MB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.5215, allocations: 64 kB / 489.2 MB, free: 9.152 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.881e-05/0.5215, allocations: 43.94 kB / 489.2 MB, free: 9.109 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002631/0.5242, allocations: 1.916 MB / 491.2 MB, free: 7.195 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5242, allocations: 0 / 491.2 MB, free: 7.195 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001366/0.5256, allocations: 0.5894 MB / 491.7 MB, free: 6.605 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.001163/0.5267, allocations: 0.7815 MB / 492.5 MB, free: 5.816 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.5284, allocations: 0.8139 MB / 493.3 MB, free: 4.977 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5284, allocations: 0 / 493.3 MB, free: 4.977 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000753/0.5292, allocations: 447.2 kB / 493.8 MB, free: 4.516 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/0.5311, allocations: 0.5248 MB / 494.3 MB, free: 3.992 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006726/0.5378, allocations: 4.385 MB / 498.7 MB, free: 15.56 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0014/0.5392, allocations: 1.665 MB / 0.4886 GB, free: 13.87 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003027/0.5396, allocations: 163.4 kB / 0.4888 GB, free: 13.71 MB / 430.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5396, allocations: 0 / 0.4888 GB, free: 13.71 MB / 430.1 MB Notification: Performance of Templates: time 0.1966/0.7362, allocations: 37.83 MB / 0.5257 GB, free: 7.824 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/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