Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,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.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,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.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 175.5 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.397/1.397, allocations: 221.3 MB / 235.5 MB, free: 2.91 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.0008038/0.0008038, allocations: 93.98 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.736e-05/2.745e-05, allocations: 0 / 343.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09843/0.09848, allocations: 50.41 MB / 394.2 MB, free: 1.867 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3153/0.4139, allocations: 104.2 MB / 498.5 MB, free: 15.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002147/0.4141, allocations: 83.77 kB / 498.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4833/0.8974, allocations: 143.2 MB / 0.6267 GB, free: 77.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.8974, allocations: 0 / 0.6267 GB, free: 77.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.308e-05/0.8975, allocations: 44 kB / 0.6267 GB, free: 77.28 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.003644/0.9012, allocations: 2.787 MB / 0.6295 GB, free: 74.44 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.9012, allocations: 11.97 kB / 0.6295 GB, free: 74.43 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000342/0.9016, allocations: 414.9 kB / 0.6299 GB, free: 74.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003138/0.9047, allocations: 2.41 MB / 0.6322 GB, free: 71.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.9048, allocations: 37 kB / 0.6323 GB, free: 71.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.9049, allocations: 52 kB / 0.6323 GB, free: 71.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009713/0.9059, allocations: 0.791 MB / 0.6331 GB, free: 70.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.9059, allocations: 3.938 kB / 0.6331 GB, free: 70.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.392e-05/0.906, allocations: 24 kB / 0.6331 GB, free: 70.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.906, allocations: 19.98 kB / 0.6331 GB, free: 70.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008476/0.9068, allocations: 0.7072 MB / 0.6338 GB, free: 69.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004335/0.9112, allocations: 3.278 MB / 0.637 GB, free: 66.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005601/0.9118, allocations: 485 kB / 0.6375 GB, free: 66.03 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005626/0.9123, allocations: 0.5966 MB / 0.6381 GB, free: 65.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0252/0.9375, allocations: 36.11 MB / 0.6733 GB, free: 24.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004387/0.938, allocations: 321.4 kB / 0.6736 GB, free: 23.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.335e-06/0.938, allocations: 0 / 0.6736 GB, free: 23.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001032/0.9391, allocations: 0.8132 MB / 0.6744 GB, free: 23.03 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.9392, allocations: 273 kB / 0.6747 GB, free: 22.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002803/0.942, allocations: 2.65 MB / 0.6773 GB, free: 20.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.869e-05/0.942, allocations: 41.69 kB / 0.6773 GB, free: 20.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009926/0.943, allocations: 1.576 MB / 0.6789 GB, free: 18.42 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.9432, allocations: 169.6 kB / 0.679 GB, free: 18.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/0.9432, allocations: 16 kB / 0.679 GB, free: 18.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.9433, allocations: 338.3 kB / 0.6794 GB, free: 17.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002767/0.9436, allocations: 190 kB / 0.6795 GB, free: 17.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004415/0.944, allocations: 0.6049 MB / 0.6801 GB, free: 16.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003583/0.9444, allocations: 277.4 kB / 0.6804 GB, free: 16.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.437e-06/0.9444, allocations: 4 kB / 0.6804 GB, free: 16.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001343/0.9458, allocations: 1.135 MB / 0.6815 GB, free: 15.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.9458, allocations: 13.25 kB / 0.6815 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.672e-05/0.9459, allocations: 79.98 kB / 0.6816 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.866e-05/0.9459, allocations: 16 kB / 0.6816 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006674/0.9466, allocations: 216.2 kB / 0.6818 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.064e-05/0.9466, allocations: 27.86 kB / 0.6818 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.9478, allocations: 127 kB / 0.682 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.176e-05/0.9479, allocations: 67.94 kB / 0.682 GB, free: 14.96 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.0001531/0.9481, allocations: 167.7 kB / 0.6822 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.9483, allocations: 399.1 kB / 0.6826 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002328/0.9507, allocations: 1.16 MB / 0.6837 GB, free: 13.22 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.9507, allocations: 4 kB / 0.6837 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.9507, allocations: 4 kB / 0.6837 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.9507, allocations: 3.984 kB / 0.6837 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002709/0.9534, allocations: 2.182 MB / 0.6858 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.809e-05/0.9535, allocations: 71.98 kB / 0.6859 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000462/0.954, allocations: 103.9 kB / 0.686 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.954, allocations: 0 / 0.686 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.111e-05/0.954, allocations: 35.98 kB / 0.6861 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.9541, allocations: 4 kB / 0.6861 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.9541, allocations: 7.953 kB / 0.6861 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001214/0.9553, allocations: 1.228 MB / 0.6873 GB, free: 9.465 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007015/0.956, allocations: 0.5272 MB / 0.6878 GB, free: 8.914 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002777/0.9563, allocations: 8 kB / 0.6878 GB, free: 8.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007275/0.957, allocations: 48.02 kB / 0.6878 GB, free: 8.859 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.9572, allocations: 59.94 kB / 0.6879 GB, free: 8.801 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.776e-05/0.9572, allocations: 39.98 kB / 0.6879 GB, free: 8.762 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002077/0.9593, allocations: 2.018 MB / 0.6899 GB, free: 6.746 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.9593, allocations: 4 kB / 0.6899 GB, free: 6.742 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001326/0.9606, allocations: 0.6518 MB / 0.6905 GB, free: 6.09 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.0009975/0.9616, allocations: 0.8831 MB / 0.6914 GB, free: 5.199 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008744/0.9625, allocations: 0.7083 MB / 0.6921 GB, free: 4.473 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.9625, allocations: 4 kB / 0.6921 GB, free: 4.469 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003837/0.9629, allocations: 399.3 kB / 0.6925 GB, free: 4.051 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002146/0.9651, allocations: 0.624 MB / 0.6931 GB, free: 3.426 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004047/0.9691, allocations: 3.27 MB / 0.6963 GB, free: 112 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001111/0.9703, allocations: 1.777 MB / 0.698 GB, free: 14.3 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001247/0.9715, allocations: 382.7 kB / 0.6984 GB, free: 13.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/0.9718, allocations: 159.4 kB / 0.6985 GB, free: 13.77 MB / 442.7 MB Notification: Performance of SimCode: time 8.51e-07/0.9718, allocations: 0 / 0.6985 GB, free: 13.77 MB / 442.7 MB Notification: Performance of Templates: time 0.2774/1.249, allocations: 34.28 MB / 0.732 GB, free: 98.18 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches