Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.Analog.Examples.HeatingMOSInverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter") translateModel(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter") [: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.0009923/0.0009924, allocations: 184.8 kB / 8.133 MB, free: 2.199 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.176/1.176, allocations: 221.4 MB / 229.9 MB, free: 3.25 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.000927/0.0009272, allocations: 88.58 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.504e-06/7.644e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1895, allocations: 50.4 MB / 386.9 MB, free: 37.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08009/0.2696, allocations: 80.99 MB / 467.9 MB, free: 5.695 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.2698, allocations: 79.02 kB / 468 MB, free: 5.621 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01755/0.2874, allocations: 6.324 MB / 474.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.2874, allocations: 8 kB / 474.3 MB, free: 15.3 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001295/0.2887, allocations: 0.7181 MB / 475 MB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.2888, allocations: 8.031 kB / 475 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.512e-05/0.2889, allocations: 47.44 kB / 475.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005003/0.2894, allocations: 334.1 kB / 475.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.2894, allocations: 12 kB / 475.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.37e-05/0.2895, allocations: 20 kB / 475.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006053/0.2901, allocations: 333.5 kB / 475.8 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000597/0.2907, allocations: 371.9 kB / 476.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.2908, allocations: 0 / 476.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.2908, allocations: 4 kB / 476.1 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.2908, allocations: 12 kB / 476.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002395/0.2932, allocations: 1.496 MB / 477.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003656/0.2936, allocations: 220.8 kB / 477.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.2939, allocations: 178.1 kB / 478 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.493e-05/0.2939, allocations: 16.3 kB / 478 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.2939, allocations: 34.89 kB / 478.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.733e-06/0.294, allocations: 0 / 478.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001342/0.2953, allocations: 0.4908 MB / 478.6 MB, free: 10.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.2954, allocations: 166.1 kB / 478.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.2956, allocations: 215.4 kB / 478.9 MB, free: 10.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.2956, allocations: 29.7 kB / 479 MB, free: 10.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.29e-05/0.2957, allocations: 180.3 kB / 479.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.745e-05/0.2958, allocations: 134 kB / 479.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.155e-05/0.2958, allocations: 4 kB / 479.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.296, allocations: 338.8 kB / 479.6 MB, free: 9.695 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.2962, allocations: 116.9 kB / 479.7 MB, free: 9.578 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.2964, allocations: 209.8 kB / 479.9 MB, free: 9.336 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002792/0.2967, allocations: 139.4 kB / 480.1 MB, free: 9.203 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2967, allocations: 0 / 480.1 MB, free: 9.203 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001667/0.2984, allocations: 0.6198 MB / 480.7 MB, free: 8.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.2984, allocations: 4 kB / 480.7 MB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.2984, allocations: 4 kB / 480.7 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009051/0.2993, allocations: 269.4 kB / 481 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004039/0.2998, allocations: 87.88 kB / 481 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.3009, allocations: 1.347 MB / 482.4 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005234/0.3014, allocations: 91.75 kB / 482.5 MB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-05/0.3015, allocations: 19.91 kB / 482.5 MB, free: 6.699 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001143/0.3016, allocations: 109 kB / 482.6 MB, free: 6.586 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.252e-05/0.3017, allocations: 31.62 kB / 482.6 MB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001682/0.3034, allocations: 0.6095 MB / 483.2 MB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.3034, allocations: 4 kB / 483.2 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3034, allocations: 7.875 kB / 483.3 MB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.3034, allocations: 15.92 kB / 483.3 MB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004933/0.3039, allocations: 405.6 kB / 483.7 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3039, allocations: 0 / 483.7 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003452/0.3043, allocations: 67.95 kB / 483.7 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008398/0.3051, allocations: 266.7 kB / 484 MB, free: 5.137 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.3052, allocations: 4 kB / 484 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.3063, allocations: 1.36 MB / 485.4 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3063, allocations: 2.344 kB / 485.4 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00188/0.3082, allocations: 0.8636 MB / 486.2 MB, free: 2.836 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.948e-05/0.3083, allocations: 116.6 kB / 486.3 MB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.203e-05/0.3084, allocations: 0 / 486.3 MB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.3088, allocations: 56.02 kB / 486.4 MB, free: 2.648 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.153e-05/0.3089, allocations: 27.95 kB / 486.4 MB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-05/0.309, allocations: 12.19 kB / 486.4 MB, free: 2.609 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001918/0.3092, allocations: 167.1 kB / 486.6 MB, free: 2.445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004868/0.3097, allocations: 103.6 kB / 486.7 MB, free: 2.344 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002544/0.3099, allocations: 103.2 kB / 486.8 MB, free: 2.234 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000896/0.3108, allocations: 351.8 kB / 487.1 MB, free: 1.891 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3108, allocations: 0 / 487.1 MB, free: 1.891 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004591/0.3113, allocations: 187.9 kB / 487.3 MB, free: 1.707 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.3117, allocations: 35.94 kB / 487.4 MB, free: 1.676 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.3132, allocations: 0.5813 MB / 487.9 MB, free: 1.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004499/0.3137, allocations: 0.8419 MB / 488.8 MB, free: 208 kB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.3137, allocations: 0 / 488.8 MB, free: 208 kB / 362.7 MB Notification: Performance of Templates: time 0.009325/0.323, allocations: 5.406 MB / 494.2 MB, free: 10.85 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingMOSInverter/HeatingMOSInverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches