Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008886/0.0008884, allocations: 84.39 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.727e-05/1.728e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09604/0.09607, allocations: 50.43 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.345/0.4411, allocations: 103.5 MB / 491 MB, free: 7.281 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.4414, allocations: 71.95 kB / 491.1 MB, free: 7.211 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5221/0.9635, allocations: 135.8 MB / 0.6122 GB, free: 91.33 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.542e-06/0.9636, allocations: 0 / 0.6122 GB, free: 91.33 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002152/0.9638, allocations: 47.53 kB / 0.6122 GB, free: 91.33 MB / 426.7 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.005538/0.9694, allocations: 2.694 MB / 0.6148 GB, free: 89.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.9694, allocations: 9.656 kB / 0.6148 GB, free: 89.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007616/0.9702, allocations: 402.8 kB / 0.6152 GB, free: 89.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004365/0.9746, allocations: 2.344 MB / 0.6175 GB, free: 87.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.745e-05/0.9746, allocations: 18.11 kB / 0.6175 GB, free: 87.58 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000221/0.9749, allocations: 38.62 kB / 0.6176 GB, free: 87.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001079/0.976, allocations: 0.685 MB / 0.6182 GB, free: 87.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.977, allocations: 0.7198 MB / 0.6189 GB, free: 86.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.977, allocations: 0 / 0.6189 GB, free: 86.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.952e-05/0.9771, allocations: 7.156 kB / 0.619 GB, free: 86.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.437e-05/0.9771, allocations: 23.39 kB / 0.619 GB, free: 86.87 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005691/0.9828, allocations: 3.065 MB / 0.622 GB, free: 83.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005539/0.9834, allocations: 475.8 kB / 0.6224 GB, free: 83.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005161/0.984, allocations: 0.5694 MB / 0.623 GB, free: 82.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0257/1.01, allocations: 36.06 MB / 0.6582 GB, free: 41.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004213/1.01, allocations: 301.6 kB / 0.6585 GB, free: 41.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.394e-06/1.01, allocations: 4 kB / 0.6585 GB, free: 41.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001142/1.011, allocations: 0.782 MB / 0.6592 GB, free: 40.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.356e-05/1.011, allocations: 265 kB / 0.6595 GB, free: 40.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00265/1.014, allocations: 2.301 MB / 0.6617 GB, free: 38.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.041e-05/1.014, allocations: 33.7 kB / 0.6618 GB, free: 38 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009299/1.015, allocations: 1.497 MB / 0.6632 GB, free: 36.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/1.015, allocations: 165.6 kB / 0.6634 GB, free: 36.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/1.015, allocations: 0 / 0.6634 GB, free: 36.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.576e-05/1.015, allocations: 342.2 kB / 0.6637 GB, free: 35.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/1.016, allocations: 178.6 kB / 0.6639 GB, free: 35.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003732/1.016, allocations: 0.5781 MB / 0.6645 GB, free: 35.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003827/1.016, allocations: 260.5 kB / 0.6647 GB, free: 34.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/1.016, allocations: 4 kB / 0.6647 GB, free: 34.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001333/1.018, allocations: 1.024 MB / 0.6657 GB, free: 33.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/1.018, allocations: 18 kB / 0.6657 GB, free: 33.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/1.018, allocations: 83.98 kB / 0.6658 GB, free: 33.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/1.018, allocations: 24 kB / 0.6658 GB, free: 33.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007088/1.019, allocations: 211.6 kB / 0.666 GB, free: 33.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/1.019, allocations: 27.92 kB / 0.6661 GB, free: 33.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/1.02, allocations: 103 kB / 0.6662 GB, free: 33.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.457e-05/1.02, allocations: 71.98 kB / 0.6662 GB, free: 33.22 MB / 426.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001596/1.02, allocations: 144.6 kB / 0.6664 GB, free: 33.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/1.02, allocations: 379.4 kB / 0.6667 GB, free: 32.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002461/1.023, allocations: 1.11 MB / 0.6678 GB, free: 31.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/1.023, allocations: 4 kB / 0.6678 GB, free: 31.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/1.023, allocations: 0 / 0.6678 GB, free: 31.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/1.023, allocations: 3.984 kB / 0.6678 GB, free: 31.58 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002636/1.025, allocations: 2.001 MB / 0.6698 GB, free: 29.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.14e-05/1.026, allocations: 71.98 kB / 0.6698 GB, free: 29.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004832/1.026, allocations: 103.8 kB / 0.6699 GB, free: 29.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/1.026, allocations: 12 kB / 0.67 GB, free: 29.35 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.695e-05/1.026, allocations: 24 kB / 0.67 GB, free: 29.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/1.026, allocations: 3.984 kB / 0.67 GB, free: 29.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/1.026, allocations: 3.938 kB / 0.67 GB, free: 29.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/1.027, allocations: 1.185 MB / 0.6711 GB, free: 28.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007709/1.028, allocations: 0.5491 MB / 0.6717 GB, free: 27.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003059/1.028, allocations: 4 kB / 0.6717 GB, free: 27.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006911/1.029, allocations: 43.91 kB / 0.6717 GB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/1.029, allocations: 60 kB / 0.6718 GB, free: 27.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.948e-05/1.029, allocations: 43.92 kB / 0.6718 GB, free: 27.35 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001925/1.031, allocations: 1.705 MB / 0.6735 GB, free: 25.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.61e-07/1.031, allocations: 0 / 0.6735 GB, free: 25.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001369/1.033, allocations: 0.6049 MB / 0.6741 GB, free: 25.04 MB / 426.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001086/1.034, allocations: 0.9308 MB / 0.675 GB, free: 24.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008689/1.035, allocations: 0.6652 MB / 0.6756 GB, free: 23.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.035, allocations: 1.188 kB / 0.6756 GB, free: 23.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003602/1.035, allocations: 383.1 kB / 0.676 GB, free: 23.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/1.037, allocations: 0.5936 MB / 0.6766 GB, free: 22.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004456/1.042, allocations: 3.093 MB / 0.6796 GB, free: 19.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008314/1.043, allocations: 1.724 MB / 0.6813 GB, free: 17.61 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001295/1.044, allocations: 378.4 kB / 0.6816 GB, free: 17.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/1.044, allocations: 163.4 kB / 0.6818 GB, free: 17.07 MB / 426.7 MB Notification: Performance of SimCode: time 6.72e-07/1.044, allocations: 0 / 0.6818 GB, free: 17.07 MB / 426.7 MB Notification: Performance of Templates: time 0.0483/1.092, allocations: 28.18 MB / 0.7093 GB, free: 5.086 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches