Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001092/0.001092, allocations: 196 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009186/0.0009185, allocations: 96.48 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.592e-06/6.622e-06, allocations: 0 / 343.1 MB, free: 8.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1155, allocations: 51.48 MB / 394.6 MB, free: 5.199 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3282/0.4438, allocations: 104.3 MB / 498.9 MB, free: 5.117 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000172/0.444, allocations: 74.58 kB / 499 MB, free: 5.078 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.486/0.9299, allocations: 139 MB / 0.623 GB, free: 58.12 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002509/0.9302, allocations: 46.38 kB / 0.623 GB, free: 58.12 MB / 442.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.006126/0.9364, allocations: 2.834 MB / 0.6258 GB, free: 56.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.9364, allocations: 11.83 kB / 0.6258 GB, free: 56.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008594/0.9373, allocations: 416 kB / 0.6262 GB, free: 56.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005197/0.9425, allocations: 2.419 MB / 0.6286 GB, free: 55.69 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.216e-05/0.9426, allocations: 15.41 kB / 0.6286 GB, free: 55.69 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002945/0.9429, allocations: 38.47 kB / 0.6286 GB, free: 55.69 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00149/0.9444, allocations: 0.6877 MB / 0.6293 GB, free: 55.69 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.9457, allocations: 0.7124 MB / 0.63 GB, free: 55.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.9457, allocations: 4.625 kB / 0.63 GB, free: 55.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.666e-05/0.9458, allocations: 0.6562 kB / 0.63 GB, free: 55.55 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.842e-05/0.9458, allocations: 24.42 kB / 0.63 GB, free: 55.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007715/0.9536, allocations: 3.175 MB / 0.6331 GB, free: 55.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005799/0.9542, allocations: 351 kB / 0.6335 GB, free: 55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008105/0.955, allocations: 0.5292 MB / 0.634 GB, free: 54.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03797/0.993, allocations: 36.64 MB / 0.6698 GB, free: 27.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004977/0.9935, allocations: 290 kB / 0.67 GB, free: 27.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.986e-06/0.9935, allocations: 0 / 0.67 GB, free: 27.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001458/0.995, allocations: 0.7928 MB / 0.6708 GB, free: 27.46 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/0.9951, allocations: 268 kB / 0.6711 GB, free: 27.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003057/0.9981, allocations: 2.446 MB / 0.6735 GB, free: 26.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.183e-05/0.9982, allocations: 29.58 kB / 0.6735 GB, free: 26.83 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004227/0.9986, allocations: 0.6601 MB / 0.6741 GB, free: 26.57 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.9988, allocations: 166.6 kB / 0.6743 GB, free: 26.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/0.9988, allocations: 0 / 0.6743 GB, free: 26.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.242e-05/0.9989, allocations: 337.5 kB / 0.6746 GB, free: 26.16 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.9991, allocations: 175.9 kB / 0.6748 GB, free: 26.16 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004414/0.9996, allocations: 0.5736 MB / 0.6753 GB, free: 25.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004686/1, allocations: 269.4 kB / 0.6756 GB, free: 25.59 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/1, allocations: 3.906 kB / 0.6756 GB, free: 25.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001451/1.002, allocations: 1.045 MB / 0.6766 GB, free: 25.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/1.002, allocations: 5.969 kB / 0.6766 GB, free: 25.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/1.002, allocations: 82.28 kB / 0.6767 GB, free: 25.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3e-05/1.002, allocations: 24.38 kB / 0.6767 GB, free: 25.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000729/1.002, allocations: 215.8 kB / 0.6769 GB, free: 25.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/1.002, allocations: 32.27 kB / 0.677 GB, free: 25.26 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/1.004, allocations: 112.5 kB / 0.6771 GB, free: 25.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.409e-05/1.004, allocations: 66.69 kB / 0.6771 GB, free: 25.21 MB / 442.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.0001586/1.004, allocations: 140.5 kB / 0.6773 GB, free: 25.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/1.004, allocations: 397.8 kB / 0.6776 GB, free: 24.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00372/1.008, allocations: 1.378 MB / 0.679 GB, free: 24.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/1.008, allocations: 6.453 kB / 0.679 GB, free: 24.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.008, allocations: 3.875 kB / 0.679 GB, free: 24.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/1.008, allocations: 7.906 kB / 0.679 GB, free: 24.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/1.011, allocations: 2.078 MB / 0.681 GB, free: 23.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.365e-05/1.011, allocations: 68.17 kB / 0.6811 GB, free: 23.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000519/1.012, allocations: 113.6 kB / 0.6812 GB, free: 23.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/1.012, allocations: 5.125 kB / 0.6812 GB, free: 23.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.905e-05/1.012, allocations: 30.7 kB / 0.6812 GB, free: 23.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-06/1.012, allocations: 0 / 0.6812 GB, free: 23.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/1.012, allocations: 2.969 kB / 0.6812 GB, free: 23.45 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001354/1.013, allocations: 1.194 MB / 0.6824 GB, free: 22.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008087/1.014, allocations: 0.5107 MB / 0.6829 GB, free: 22.44 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004147/1.015, allocations: 6.688 kB / 0.6829 GB, free: 22.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007873/1.016, allocations: 53.69 kB / 0.683 GB, free: 22.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/1.016, allocations: 60.7 kB / 0.683 GB, free: 22.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.536e-05/1.016, allocations: 34.59 kB / 0.6831 GB, free: 22.41 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002314/1.018, allocations: 1.806 MB / 0.6848 GB, free: 21.67 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001558/1.02, allocations: 0.6222 MB / 0.6854 GB, free: 21.59 MB / 442.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.001119/1.021, allocations: 0.9738 MB / 0.6864 GB, free: 21.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009316/1.022, allocations: 0.6732 MB / 0.687 GB, free: 21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/1.022, allocations: 0 / 0.687 GB, free: 21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004155/1.022, allocations: 392.3 kB / 0.6874 GB, free: 20.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/1.024, allocations: 0.602 MB / 0.688 GB, free: 20.58 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005554/1.03, allocations: 3.264 MB / 0.6912 GB, free: 19.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/1.031, allocations: 1.945 MB / 0.6931 GB, free: 34.45 MB / 458.7 MB Notification: Performance of SimCode: time 6.11e-07/1.031, allocations: 0 / 0.6931 GB, free: 34.45 MB / 458.7 MB Notification: Performance of Templates: time 0.0516/1.083, allocations: 29.96 MB / 0.7224 GB, free: 12.62 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches