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.001331/0.00133, allocations: 174.7 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 221.3 MB / 235.5 MB, free: 2.973 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.0008326/0.0008325, allocations: 95.84 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.184e-05/2.196e-05, allocations: 3.984 kB / 343.8 MB, free: 4.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09588/0.09592, allocations: 50.41 MB / 394.2 MB, free: 1.879 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4415/0.5375, allocations: 104.2 MB / 498.4 MB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000336/0.5379, allocations: 79.78 kB / 498.5 MB, free: 15.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4837/1.022, allocations: 141.1 MB / 0.6246 GB, free: 79.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.112e-06/1.022, allocations: 4 kB / 0.6246 GB, free: 79.4 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.64e-05/1.022, allocations: 44 kB / 0.6246 GB, free: 79.36 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.00352/1.025, allocations: 2.697 MB / 0.6273 GB, free: 76.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/1.025, allocations: 8.031 kB / 0.6273 GB, free: 76.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003351/1.026, allocations: 399.1 kB / 0.6276 GB, free: 76.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00309/1.029, allocations: 2.349 MB / 0.6299 GB, free: 73.78 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/1.029, allocations: 40.88 kB / 0.63 GB, free: 73.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/1.029, allocations: 59.89 kB / 0.63 GB, free: 73.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009923/1.03, allocations: 0.7832 MB / 0.6308 GB, free: 72.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/1.03, allocations: 4 kB / 0.6308 GB, free: 72.87 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-05/1.03, allocations: 23.98 kB / 0.6308 GB, free: 72.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/1.03, allocations: 16 kB / 0.6308 GB, free: 72.83 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008374/1.031, allocations: 0.715 MB / 0.6315 GB, free: 72.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004329/1.035, allocations: 3.185 MB / 0.6347 GB, free: 68.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005611/1.036, allocations: 485 kB / 0.6351 GB, free: 68.35 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005648/1.036, allocations: 0.5889 MB / 0.6357 GB, free: 67.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02591/1.062, allocations: 36.07 MB / 0.6709 GB, free: 26.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004226/1.063, allocations: 317.6 kB / 0.6712 GB, free: 26.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.815e-06/1.063, allocations: 0 / 0.6712 GB, free: 26.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001019/1.064, allocations: 0.8016 MB / 0.672 GB, free: 25.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/1.064, allocations: 269 kB / 0.6723 GB, free: 25.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002617/1.066, allocations: 2.503 MB / 0.6747 GB, free: 22.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.731e-05/1.067, allocations: 37.7 kB / 0.6747 GB, free: 22.53 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008599/1.067, allocations: 1.493 MB / 0.6762 GB, free: 21.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/1.068, allocations: 173.6 kB / 0.6764 GB, free: 20.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.84e-05/1.068, allocations: 16 kB / 0.6764 GB, free: 20.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.375e-05/1.068, allocations: 337.9 kB / 0.6767 GB, free: 20.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/1.068, allocations: 193.9 kB / 0.6769 GB, free: 20.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003957/1.068, allocations: 0.6013 MB / 0.6775 GB, free: 19.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003551/1.069, allocations: 277.4 kB / 0.6777 GB, free: 19.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.75e-06/1.069, allocations: 4 kB / 0.6777 GB, free: 19.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001286/1.07, allocations: 1.12 MB / 0.6788 GB, free: 18.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/1.07, allocations: 8.188 kB / 0.6788 GB, free: 18.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.359e-05/1.07, allocations: 87.98 kB / 0.6789 GB, free: 18.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.592e-05/1.07, allocations: 20 kB / 0.6789 GB, free: 18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006796/1.071, allocations: 207.7 kB / 0.6791 GB, free: 17.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/1.071, allocations: 27.86 kB / 0.6792 GB, free: 17.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/1.072, allocations: 130.9 kB / 0.6793 GB, free: 17.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.407e-05/1.072, allocations: 67.94 kB / 0.6794 GB, free: 17.57 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.0001395/1.072, allocations: 165.4 kB / 0.6795 GB, free: 17.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002494/1.072, allocations: 383.4 kB / 0.6799 GB, free: 17.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002289/1.075, allocations: 1.142 MB / 0.681 GB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/1.075, allocations: 4 kB / 0.681 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/1.075, allocations: 4 kB / 0.681 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/1.075, allocations: 3.984 kB / 0.681 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002578/1.077, allocations: 2.116 MB / 0.6831 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-05/1.077, allocations: 67.98 kB / 0.6831 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004622/1.078, allocations: 107.9 kB / 0.6832 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/1.078, allocations: 4 kB / 0.6833 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.918e-05/1.078, allocations: 28 kB / 0.6833 GB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/1.078, allocations: 4 kB / 0.6833 GB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.078, allocations: 7.938 kB / 0.6833 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/1.079, allocations: 1.213 MB / 0.6845 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007065/1.08, allocations: 0.553 MB / 0.685 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002598/1.08, allocations: 12 kB / 0.685 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007038/1.081, allocations: 48.02 kB / 0.6851 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/1.081, allocations: 59.94 kB / 0.6851 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.04e-05/1.081, allocations: 39.98 kB / 0.6852 GB, free: 11.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001863/1.083, allocations: 1.902 MB / 0.687 GB, free: 9.551 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.083, allocations: 0 / 0.687 GB, free: 9.551 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001187/1.084, allocations: 0.6439 MB / 0.6877 GB, free: 8.906 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.00095/1.085, allocations: 0.8403 MB / 0.6885 GB, free: 8.059 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008131/1.086, allocations: 0.7077 MB / 0.6892 GB, free: 7.328 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/1.086, allocations: 0 / 0.6892 GB, free: 7.328 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003922/1.086, allocations: 399.3 kB / 0.6895 GB, free: 6.914 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002016/1.088, allocations: 0.6004 MB / 0.6901 GB, free: 6.312 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004271/1.093, allocations: 3.126 MB / 0.6932 GB, free: 3.137 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007621/1.093, allocations: 1.72 MB / 0.6949 GB, free: 1.391 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001107/1.094, allocations: 382.4 kB / 0.6952 GB, free: 1.012 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/1.095, allocations: 163.4 kB / 0.6954 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of SimCode: time 6.02e-07/1.095, allocations: 4 kB / 0.6954 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of Templates: time 0.2646/1.359, allocations: 32.5 MB / 0.7271 GB, free: 96.77 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