Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 184 kB / 8.137 MB, free: 2.223 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.161/1.161, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0009621/0.0009621, allocations: 92 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1014/0.1024, allocations: 55.82 MB / 336.6 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.3048, allocations: 50.39 MB / 387 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08759/0.3924, allocations: 82 MB / 469 MB, free: 4.859 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.3928, allocations: 67.97 kB / 469.1 MB, free: 4.793 MB / 346.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.05602/0.4488, allocations: 28.28 MB / 497.3 MB, free: 8.629 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.4488, allocations: 8 kB / 497.3 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.828e-05/0.4489, allocations: 31.62 kB / 497.4 MB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.4492, allocations: 269.4 kB / 497.6 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.4493, allocations: 6.438 kB / 497.6 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.282e-05/0.4493, allocations: 8 kB / 497.7 MB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001374/0.4495, allocations: 59.92 kB / 497.7 MB, free: 8.215 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.4497, allocations: 141.6 kB / 497.9 MB, free: 8.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.4497, allocations: 0 / 497.9 MB, free: 8.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.245e-05/0.4497, allocations: 11.98 kB / 497.9 MB, free: 8.059 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.4498, allocations: 0 / 497.9 MB, free: 8.059 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007211/0.4505, allocations: 469 kB / 498.3 MB, free: 7.562 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.4506, allocations: 102.5 kB / 498.4 MB, free: 7.453 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.4508, allocations: 81.88 kB / 498.5 MB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.437e-06/0.4508, allocations: 7.906 kB / 498.5 MB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000209/0.451, allocations: 202.7 kB / 498.7 MB, free: 7.141 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.313e-06/0.451, allocations: 0 / 498.7 MB, free: 7.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003976/0.4514, allocations: 221.1 kB / 498.9 MB, free: 6.918 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/0.4515, allocations: 174.2 kB / 499.1 MB, free: 6.711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004846/0.452, allocations: 444.5 kB / 499.5 MB, free: 6.273 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.452, allocations: 29.7 kB / 499.6 MB, free: 6.238 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.357e-05/0.4521, allocations: 89.14 kB / 499.6 MB, free: 6.148 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.011e-05/0.4521, allocations: 27.7 kB / 499.7 MB, free: 6.121 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.029e-05/0.4521, allocations: 0 / 499.7 MB, free: 6.121 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.997e-05/0.4522, allocations: 330.7 kB / 500 MB, free: 5.789 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.4523, allocations: 55.98 kB / 0.4883 GB, free: 5.734 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.4525, allocations: 63.97 kB / 0.4884 GB, free: 5.672 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.264e-05/0.4526, allocations: 55.48 kB / 0.4884 GB, free: 5.621 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4526, allocations: 0 / 0.4884 GB, free: 5.621 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003191/0.4529, allocations: 205.4 kB / 0.4886 GB, free: 5.414 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.4529, allocations: 8.656 kB / 0.4886 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.4529, allocations: 0 / 0.4886 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.4529, allocations: 3.906 kB / 0.4887 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.482e-05/0.453, allocations: 0 / 0.4887 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.216e-06/0.453, allocations: 0 / 0.4887 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.4531, allocations: 12 kB / 0.4887 GB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.4532, allocations: 127.9 kB / 0.4888 GB, free: 5.266 MB / 378.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.0001888/0.4534, allocations: 246.2 kB / 0.489 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.852e-05/0.4535, allocations: 39.53 kB / 0.4891 GB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.4536, allocations: 63.25 kB / 0.4891 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4536, allocations: 0 / 0.4891 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4536, allocations: 0 / 0.4891 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.4536, allocations: 0 / 0.4891 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007199/0.4544, allocations: 0.5964 MB / 0.4897 GB, free: 4.254 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4544, allocations: 4 kB / 0.4897 GB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-06/0.4544, allocations: 0.9375 kB / 0.4897 GB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.4544, allocations: 4 kB / 0.4897 GB, free: 4.246 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/0.4544, allocations: 19.98 kB / 0.4897 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.4544, allocations: 0 / 0.4897 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.4545, allocations: 3.984 kB / 0.4897 GB, free: 4.223 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003934/0.4549, allocations: 335 kB / 0.4901 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004711/0.4553, allocations: 0.7219 MB / 0.4908 GB, free: 3.137 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003337/0.4557, allocations: 256.5 kB / 0.491 GB, free: 2.867 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.708e-05/0.4558, allocations: 15.94 kB / 0.491 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.4559, allocations: 11.91 kB / 0.491 GB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.4561, allocations: 39.89 kB / 0.4911 GB, free: 2.801 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/0.4563, allocations: 115.9 kB / 0.4912 GB, free: 2.688 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004366/0.4567, allocations: 374.9 kB / 0.4915 GB, free: 2.324 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008615/0.4576, allocations: 36 kB / 0.4916 GB, free: 2.289 MB / 378.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.0001413/0.4577, allocations: 115 kB / 0.4917 GB, free: 2.168 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003454/0.4581, allocations: 274.9 kB / 0.4919 GB, free: 1.875 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4581, allocations: 0 / 0.4919 GB, free: 1.875 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.4584, allocations: 266.8 kB / 0.4922 GB, free: 1.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006055/0.459, allocations: 109 kB / 0.4923 GB, free: 1.488 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.4601, allocations: 0.5265 MB / 0.4928 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005334/0.4606, allocations: 0.8134 MB / 0.4936 GB, free: 96 kB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4606, allocations: 4 kB / 0.4936 GB, free: 92 kB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1)