Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.0009745/0.0009747, allocations: 174 kB / 8.476 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.079/1.079, allocations: 205.2 MB / 214.1 MB, free: 5.09 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.0008357/0.0008357, allocations: 82.27 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1521/0.153, allocations: 52.97 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06771/0.2207, allocations: 47.57 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2262/0.4469, allocations: 101.5 MB / 464.1 MB, free: 5.262 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.4471, allocations: 73.92 kB / 464.2 MB, free: 5.25 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.2487/0.6958, allocations: 123.8 MB / 0.5742 GB, free: 1.828 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.6959, allocations: 8 kB / 0.5742 GB, free: 1.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004061/0.6963, allocations: 399.1 kB / 0.5745 GB, free: 1.426 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1127/0.809, allocations: 2.373 MB / 0.5769 GB, free: 130.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.647e-05/0.809, allocations: 15.56 kB / 0.5769 GB, free: 130.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.8092, allocations: 40.36 kB / 0.5769 GB, free: 130.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009261/0.8101, allocations: 0.6838 MB / 0.5776 GB, free: 130.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008678/0.811, allocations: 0.7157 MB / 0.5783 GB, free: 130.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.811, allocations: 3.188 kB / 0.5783 GB, free: 130.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.584e-05/0.8111, allocations: 2.188 kB / 0.5783 GB, free: 130.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.8111, allocations: 26.48 kB / 0.5783 GB, free: 130.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004565/0.8157, allocations: 3.077 MB / 0.5813 GB, free: 130.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004147/0.8161, allocations: 360.7 kB / 0.5817 GB, free: 130.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005428/0.8166, allocations: 0.536 MB / 0.5822 GB, free: 130.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02622/0.8429, allocations: 36.04 MB / 0.6174 GB, free: 103.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003717/0.8433, allocations: 290.8 kB / 0.6177 GB, free: 103.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/0.8433, allocations: 0 / 0.6177 GB, free: 103.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001144/0.8445, allocations: 0.7671 MB / 0.6184 GB, free: 103.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.498e-05/0.8445, allocations: 269.5 kB / 0.6187 GB, free: 103.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002581/0.8471, allocations: 2.322 MB / 0.6209 GB, free: 103 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.067e-05/0.8472, allocations: 30.89 kB / 0.621 GB, free: 102.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/0.8475, allocations: 0.6462 MB / 0.6216 GB, free: 102.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.8476, allocations: 161.7 kB / 0.6218 GB, free: 102.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.014e-05/0.8477, allocations: 0 / 0.6218 GB, free: 102.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.638e-05/0.8477, allocations: 341.9 kB / 0.6221 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.848, allocations: 172.7 kB / 0.6222 GB, free: 102.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003736/0.8484, allocations: 0.5765 MB / 0.6228 GB, free: 101.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003971/0.8488, allocations: 266.8 kB / 0.6231 GB, free: 101.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.8488, allocations: 3.719 kB / 0.6231 GB, free: 101.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001268/0.8501, allocations: 1.034 MB / 0.6241 GB, free: 101.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.8501, allocations: 5.938 kB / 0.6241 GB, free: 101.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.8502, allocations: 83.16 kB / 0.6242 GB, free: 101.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.8502, allocations: 21.25 kB / 0.6242 GB, free: 101.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000724/0.851, allocations: 225.1 kB / 0.6244 GB, free: 101.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/0.851, allocations: 27.41 kB / 0.6244 GB, free: 101.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.8521, allocations: 112.4 kB / 0.6245 GB, free: 101.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.139e-05/0.8522, allocations: 66.88 kB / 0.6246 GB, free: 101.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.0001497/0.8524, allocations: 145.7 kB / 0.6247 GB, free: 101.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002658/0.8526, allocations: 384.5 kB / 0.6251 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/0.8561, allocations: 1.385 MB / 0.6265 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.8561, allocations: 4.25 kB / 0.6265 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.8562, allocations: 3.812 kB / 0.6265 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.8562, allocations: 3.938 kB / 0.6265 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002594/0.8588, allocations: 2 MB / 0.6284 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-05/0.8589, allocations: 67.11 kB / 0.6285 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005122/0.8594, allocations: 113 kB / 0.6286 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.8594, allocations: 0 / 0.6286 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.605e-05/0.8595, allocations: 28.06 kB / 0.6286 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.8595, allocations: 2.438 kB / 0.6286 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.8595, allocations: 6 kB / 0.6286 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001177/0.8607, allocations: 1.176 MB / 0.6298 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001519/0.8622, allocations: 1.837 MB / 0.6316 GB, free: 99.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007337/0.8629, allocations: 0.5605 MB / 0.6321 GB, free: 99.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003972/0.8634, allocations: 10.58 kB / 0.6321 GB, free: 99.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007789/0.8641, allocations: 43.47 kB / 0.6322 GB, free: 99.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.8643, allocations: 59.81 kB / 0.6322 GB, free: 99.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.468e-05/0.8644, allocations: 44.16 kB / 0.6323 GB, free: 99.22 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001864/0.8662, allocations: 1.718 MB / 0.6339 GB, free: 99.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001794/0.868, allocations: 0.6321 MB / 0.6346 GB, free: 99.03 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.0009899/0.869, allocations: 0.922 MB / 0.6355 GB, free: 98.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000813/0.8698, allocations: 0.6755 MB / 0.6361 GB, free: 98.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.8699, allocations: 0 / 0.6361 GB, free: 98.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003938/0.8703, allocations: 388 kB / 0.6365 GB, free: 98.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.8715, allocations: 487.3 kB / 0.637 GB, free: 98.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004513/0.876, allocations: 3.133 MB / 0.64 GB, free: 97.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/0.877, allocations: 1.915 MB / 0.6419 GB, free: 96.96 MB / 426.7 MB Notification: Performance of SimCode: time 5.41e-07/0.877, allocations: 0 / 0.6419 GB, free: 96.96 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)