Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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.001098/0.001098, allocations: 183.4 kB / 8.138 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.124/1.124, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.0008958/0.000896, allocations: 94.45 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09168/0.0926, allocations: 55.82 MB / 336.6 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.2746, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1027/0.3774, allocations: 103.5 MB / 490.5 MB, free: 15.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.3777, allocations: 79.89 kB / 490.6 MB, free: 15.16 MB / 378.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.3935/0.7712, allocations: 141.4 MB / 0.6172 GB, free: 5.402 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.7713, allocations: 8 kB / 0.6172 GB, free: 5.395 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007145/0.772, allocations: 414.9 kB / 0.6176 GB, free: 4.984 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005087/0.7771, allocations: 2.417 MB / 0.6199 GB, free: 2.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.7772, allocations: 16 kB / 0.62 GB, free: 2.484 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002761/0.7775, allocations: 35.91 kB / 0.62 GB, free: 2.449 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001477/0.779, allocations: 0.6818 MB / 0.6207 GB, free: 1.766 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.7803, allocations: 0.7227 MB / 0.6214 GB, free: 1.012 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.7804, allocations: 0 / 0.6214 GB, free: 1.012 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.012e-05/0.7804, allocations: 0 / 0.6214 GB, free: 1.012 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.111e-05/0.7805, allocations: 23.98 kB / 0.6214 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006799/0.7873, allocations: 3.171 MB / 0.6245 GB, free: 13.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005596/0.7879, allocations: 362.8 kB / 0.6248 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006563/0.7885, allocations: 0.5376 MB / 0.6254 GB, free: 12.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1478/0.9364, allocations: 35.97 MB / 0.6605 GB, free: 106.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.9368, allocations: 298.5 kB / 0.6608 GB, free: 106.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 3.046e-06/0.9368, allocations: 0 / 0.6608 GB, free: 106.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001152/0.938, allocations: 0.7832 MB / 0.6615 GB, free: 106.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.9381, allocations: 270.5 kB / 0.6618 GB, free: 106.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002917/0.941, allocations: 2.437 MB / 0.6642 GB, free: 106 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.986e-05/0.9411, allocations: 32.58 kB / 0.6642 GB, free: 106 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003942/0.9415, allocations: 0.6588 MB / 0.6648 GB, free: 105.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.9416, allocations: 163.5 kB / 0.665 GB, free: 105.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.109e-05/0.9417, allocations: 0 / 0.665 GB, free: 105.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.603e-05/0.9417, allocations: 345.9 kB / 0.6653 GB, free: 105.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.942, allocations: 169.5 kB / 0.6655 GB, free: 105.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003879/0.9424, allocations: 0.5736 MB / 0.666 GB, free: 104.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004388/0.9428, allocations: 266.4 kB / 0.6663 GB, free: 104.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.9429, allocations: 5.5 kB / 0.6663 GB, free: 104.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001413/0.9443, allocations: 1.042 MB / 0.6673 GB, free: 104.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.9443, allocations: 7.25 kB / 0.6673 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001108/0.9444, allocations: 81.59 kB / 0.6674 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.9444, allocations: 18.78 kB / 0.6674 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007422/0.9452, allocations: 218.6 kB / 0.6676 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/0.9452, allocations: 28.34 kB / 0.6677 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.9463, allocations: 111.6 kB / 0.6678 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.155e-05/0.9464, allocations: 64.25 kB / 0.6678 GB, free: 104.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.0001501/0.9466, allocations: 151.6 kB / 0.668 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002674/0.9469, allocations: 398 kB / 0.6684 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003586/0.9505, allocations: 1.381 MB / 0.6697 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.9505, allocations: 5.906 kB / 0.6697 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.9505, allocations: 0 / 0.6697 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.9505, allocations: 5.953 kB / 0.6697 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002913/0.9534, allocations: 2.082 MB / 0.6717 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.672e-05/0.9535, allocations: 66.58 kB / 0.6718 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005238/0.9541, allocations: 112.2 kB / 0.6719 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.9541, allocations: 2.844 kB / 0.6719 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.806e-05/0.9542, allocations: 30.16 kB / 0.672 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.9542, allocations: 1.781 kB / 0.672 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.9542, allocations: 3.594 kB / 0.672 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001321/0.9555, allocations: 1.192 MB / 0.6731 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001676/0.9572, allocations: 1.859 MB / 0.6749 GB, free: 102.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007989/0.958, allocations: 0.5129 MB / 0.6754 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004074/0.9584, allocations: 7.531 kB / 0.6754 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008404/0.9593, allocations: 49.2 kB / 0.6755 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.9594, allocations: 56.77 kB / 0.6755 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.79e-05/0.9595, allocations: 42.3 kB / 0.6756 GB, free: 102.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002336/0.9618, allocations: 1.81 MB / 0.6774 GB, free: 102.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002005/0.9638, allocations: 0.6373 MB / 0.678 GB, free: 102.1 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.001059/0.9649, allocations: 0.9831 MB / 0.6789 GB, free: 102 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009256/0.9658, allocations: 0.6648 MB / 0.6796 GB, free: 101.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.9659, allocations: 3.594 kB / 0.6796 GB, free: 101.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004215/0.9663, allocations: 390.3 kB / 0.68 GB, free: 101.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002312/0.9686, allocations: 0.5999 MB / 0.6805 GB, free: 101.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00513/0.9737, allocations: 3.272 MB / 0.6837 GB, free: 100.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/0.9749, allocations: 1.939 MB / 0.6856 GB, free: 100 MB / 426.7 MB Notification: Performance of SimCode: time 8.62e-07/0.9749, allocations: 2.438 kB / 0.6856 GB, free: 100 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)