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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 187.5 kB / 8.14 MB, free: 2.203 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.317/1.317, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0009638/0.0009638, allocations: 90.33 kB / 280.8 MB, free: 1.312 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.37e-06/5.39e-06, allocations: 0 / 336.5 MB, free: 9.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.21, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1081/0.3181, allocations: 103.5 MB / 490.4 MB, free: 15.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.3184, allocations: 75.84 kB / 490.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4387/0.7571, allocations: 138.5 MB / 0.6143 GB, free: 8.426 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.662e-05/0.7572, allocations: 44 kB / 0.6143 GB, free: 8.383 MB / 394.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.00454/0.7618, allocations: 2.835 MB / 0.6171 GB, free: 5.492 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.7618, allocations: 8.031 kB / 0.6171 GB, free: 5.484 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000444/0.7623, allocations: 414.9 kB / 0.6175 GB, free: 5.074 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003675/0.766, allocations: 2.421 MB / 0.6198 GB, free: 2.586 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.766, allocations: 16 kB / 0.6199 GB, free: 2.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.7661, allocations: 35.91 kB / 0.6199 GB, free: 2.535 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001101/0.7672, allocations: 0.6857 MB / 0.6206 GB, free: 1.848 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.7684, allocations: 0.7188 MB / 0.6213 GB, free: 1.098 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.7684, allocations: 0 / 0.6213 GB, free: 1.098 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.958e-05/0.7685, allocations: 0 / 0.6213 GB, free: 1.098 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.7685, allocations: 19.98 kB / 0.6213 GB, free: 1.078 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005435/0.7739, allocations: 3.175 MB / 0.6244 GB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004946/0.7745, allocations: 362.8 kB / 0.6247 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006701/0.7751, allocations: 0.5376 MB / 0.6253 GB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1498/0.9249, allocations: 35.95 MB / 0.6604 GB, free: 107.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003581/0.9253, allocations: 296.2 kB / 0.6607 GB, free: 107.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.284e-06/0.9253, allocations: 0 / 0.6607 GB, free: 107.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001062/0.9264, allocations: 0.7796 MB / 0.6614 GB, free: 107.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.9265, allocations: 276.8 kB / 0.6617 GB, free: 107.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/0.9291, allocations: 2.446 MB / 0.6641 GB, free: 107 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.001e-05/0.9292, allocations: 29.61 kB / 0.6641 GB, free: 107 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/0.9296, allocations: 0.6569 MB / 0.6647 GB, free: 106.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.9297, allocations: 164.9 kB / 0.6649 GB, free: 106.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.99e-05/0.9297, allocations: 0 / 0.6649 GB, free: 106.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.324e-05/0.9298, allocations: 339.4 kB / 0.6652 GB, free: 106.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.93, allocations: 174.5 kB / 0.6654 GB, free: 106.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003676/0.9304, allocations: 0.5765 MB / 0.6659 GB, free: 105.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003975/0.9308, allocations: 260.1 kB / 0.6662 GB, free: 105.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.9308, allocations: 3.312 kB / 0.6662 GB, free: 105.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001306/0.9321, allocations: 1.043 MB / 0.6672 GB, free: 105.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.9322, allocations: 11.06 kB / 0.6672 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000109/0.9323, allocations: 80.25 kB / 0.6673 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.9323, allocations: 19.48 kB / 0.6673 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007191/0.933, allocations: 224.1 kB / 0.6675 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.9331, allocations: 33.25 kB / 0.6676 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.9341, allocations: 110.1 kB / 0.6677 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.922e-05/0.9342, allocations: 70.05 kB / 0.6677 GB, free: 105.6 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.000145/0.9344, allocations: 140.8 kB / 0.6679 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/0.9347, allocations: 398.2 kB / 0.6683 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003501/0.9382, allocations: 1.379 MB / 0.6696 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.9382, allocations: 7.5 kB / 0.6696 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.9382, allocations: 2.859 kB / 0.6696 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.9382, allocations: 0 / 0.6696 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.941, allocations: 2.08 MB / 0.6716 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.313e-05/0.9411, allocations: 63.09 kB / 0.6717 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005172/0.9416, allocations: 121.1 kB / 0.6718 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.9416, allocations: 3.844 kB / 0.6718 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.78e-05/0.9417, allocations: 24.69 kB / 0.6718 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.9417, allocations: 3.844 kB / 0.6718 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.9417, allocations: 0 / 0.6718 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001331/0.943, allocations: 1.205 MB / 0.673 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007996/0.9438, allocations: 0.5156 MB / 0.6735 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004248/0.9443, allocations: 6.375 kB / 0.6735 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007996/0.9451, allocations: 47.5 kB / 0.6736 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.9452, allocations: 59.61 kB / 0.6736 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-05/0.9453, allocations: 37.33 kB / 0.6737 GB, free: 104.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002195/0.9475, allocations: 1.806 MB / 0.6754 GB, free: 103.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001802/0.9493, allocations: 0.6222 MB / 0.676 GB, free: 103.9 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.001233/0.9506, allocations: 0.9697 MB / 0.677 GB, free: 103.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.9516, allocations: 0.6767 MB / 0.6776 GB, free: 103.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.9516, allocations: 5.531 kB / 0.6777 GB, free: 103.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000443/0.952, allocations: 384.9 kB / 0.678 GB, free: 103.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/0.9546, allocations: 0.6046 MB / 0.6786 GB, free: 103.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005464/0.9601, allocations: 3.265 MB / 0.6818 GB, free: 102.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.9612, allocations: 1.941 MB / 0.6837 GB, free: 101.8 MB / 426.7 MB Notification: Performance of SimCode: time 5.41e-07/0.9612, allocations: 0 / 0.6837 GB, free: 101.8 MB / 426.7 MB Notification: Performance of Templates: time 0.05257/1.014, allocations: 29.92 MB / 0.7129 GB, free: 100.1 MB / 426.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