Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) [: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 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 179.8 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.09/1.09, allocations: 205.2 MB / 214.1 MB, free: 5.516 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009138/0.0009139, allocations: 90.19 kB / 262.1 MB, free: 5.57 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.162/0.163, allocations: 52.96 MB / 315.1 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0695/0.2325, allocations: 47.58 MB / 362.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2163/0.4488, allocations: 81.08 MB / 443.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/0.4491, allocations: 64.56 kB / 443.8 MB, free: 10.8 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.04623/0.4953, allocations: 27.89 MB / 471.7 MB, free: 2.391 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.4953, allocations: 13.97 kB / 471.7 MB, free: 2.387 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.4955, allocations: 33.25 kB / 471.7 MB, free: 2.371 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003461/0.4958, allocations: 267.9 kB / 472 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.4959, allocations: 8.188 kB / 472 MB, free: 2.129 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.522e-05/0.4959, allocations: 11.58 kB / 472 MB, free: 2.125 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001425/0.496, allocations: 56.27 kB / 472.1 MB, free: 2.121 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.4963, allocations: 137.5 kB / 472.2 MB, free: 2.055 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.4963, allocations: 7.984 kB / 472.2 MB, free: 2.047 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.898e-05/0.4963, allocations: 3.625 kB / 472.2 MB, free: 2.047 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.4963, allocations: 3.531 kB / 472.2 MB, free: 2.047 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006831/0.497, allocations: 470 kB / 472.7 MB, free: 1.727 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.4972, allocations: 95.73 kB / 472.8 MB, free: 1.695 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.4973, allocations: 97.38 kB / 472.8 MB, free: 1.668 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.4973, allocations: 1.406 kB / 472.9 MB, free: 1.668 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001685/0.4975, allocations: 216.6 kB / 473.1 MB, free: 1.461 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.004e-06/0.4975, allocations: 0 / 473.1 MB, free: 1.461 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003635/0.4979, allocations: 223.3 kB / 473.3 MB, free: 1.266 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.4979, allocations: 162 kB / 473.4 MB, free: 1.074 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004215/0.4983, allocations: 448.6 kB / 473.9 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.4984, allocations: 29.7 kB / 473.9 MB, free: 0.668 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.275e-05/0.4984, allocations: 92.94 kB / 474 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.4984, allocations: 35.53 kB / 474 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.105e-05/0.4985, allocations: 4 kB / 474 MB, free: 0.543 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.507e-05/0.4985, allocations: 326.6 kB / 474.4 MB, free: 228 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-05/0.4986, allocations: 55.61 kB / 474.4 MB, free: 188 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.097e-05/0.4987, allocations: 60.06 kB / 474.5 MB, free: 148 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.093e-05/0.4988, allocations: 59.08 kB / 474.5 MB, free: 104 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.4988, allocations: 8 kB / 474.5 MB, free: 96 kB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003302/0.4991, allocations: 191.7 kB / 474.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.4992, allocations: 4 kB / 474.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.4992, allocations: 0 / 474.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.4992, allocations: 7.906 kB / 474.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.741e-05/0.4992, allocations: 3.984 kB / 474.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.4992, allocations: 0 / 474.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.4994, allocations: 11.94 kB / 474.7 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.4995, allocations: 127.5 kB / 474.9 MB, free: 15.78 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * 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.0001855/0.4997, allocations: 241.1 kB / 475.1 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.358e-05/0.4998, allocations: 39.53 kB / 475.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.4999, allocations: 62.62 kB / 475.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.4999, allocations: 4 kB / 475.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.4999, allocations: 0 / 475.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.4999, allocations: 0 / 475.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006516/0.5006, allocations: 0.5911 MB / 475.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5006, allocations: 0 / 475.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-06/0.5006, allocations: 4 kB / 475.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.5006, allocations: 0 / 475.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.845e-05/0.5006, allocations: 27.86 kB / 475.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.5007, allocations: 0 / 475.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5007, allocations: 128 / 475.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003924/0.5011, allocations: 348.8 kB / 476.2 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000503/0.5016, allocations: 0.7081 MB / 476.9 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003438/0.5019, allocations: 254.8 kB / 477.1 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.984e-05/0.502, allocations: 11.61 kB / 477.1 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.5022, allocations: 15.91 kB / 477.2 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.5023, allocations: 43.7 kB / 477.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.5024, allocations: 119.8 kB / 477.3 MB, free: 13.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000412/0.5029, allocations: 364.5 kB / 477.7 MB, free: 13.13 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008666/0.5037, allocations: 44 kB / 477.7 MB, free: 13.09 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0001502/0.5039, allocations: 118.6 kB / 477.8 MB, free: 12.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003628/0.5043, allocations: 268.3 kB / 478.1 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.5043, allocations: 0 / 478.1 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.5045, allocations: 271.1 kB / 478.4 MB, free: 12.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.505, allocations: 98.73 kB / 478.5 MB, free: 12.44 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009124/0.506, allocations: 0.5355 MB / 479 MB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000442/0.5064, allocations: 0.8171 MB / 479.8 MB, free: 11.1 MB / 330.7 MB Notification: Performance of SimCode: time 3.5e-07/0.5064, allocations: 0 / 479.8 MB, free: 11.1 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1)