Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.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.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator",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.001033/0.001033, allocations: 183.7 kB / 8.482 MB, free: 1.789 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.047/1.047, allocations: 205.2 MB / 214.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008018/0.0008018, allocations: 91.47 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08604/0.08687, allocations: 52.98 MB / 315.1 MB, free: 8.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.2518, allocations: 47.55 MB / 362.6 MB, free: 45.9 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08399/0.3358, allocations: 89.54 MB / 452.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001801/0.3361, allocations: 71.95 kB / 452.2 MB, free: 12.36 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.1075/0.4436, allocations: 53.32 MB / 0.4937 GB, free: 7.008 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.4437, allocations: 12 kB / 0.4937 GB, free: 6.996 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003099/0.444, allocations: 201.6 kB / 0.4939 GB, free: 6.797 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001793/0.4458, allocations: 1.139 MB / 0.495 GB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.4458, allocations: 15.91 kB / 0.495 GB, free: 5.598 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-05/0.4459, allocations: 28 kB / 0.4951 GB, free: 5.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006724/0.4466, allocations: 390.2 kB / 0.4954 GB, free: 5.188 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007316/0.4473, allocations: 422.3 kB / 0.4958 GB, free: 4.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.4474, allocations: 0 / 0.4958 GB, free: 4.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.462e-05/0.4474, allocations: 7.984 kB / 0.4958 GB, free: 4.762 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.4474, allocations: 14.53 kB / 0.4959 GB, free: 4.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003197/0.4506, allocations: 2.046 MB / 0.4979 GB, free: 2.637 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005712/0.4512, allocations: 429.2 kB / 0.4983 GB, free: 2.207 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000532/0.4518, allocations: 469.5 kB / 0.4987 GB, free: 1.746 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1011/0.5529, allocations: 7.688 MB / 0.5062 GB, free: 135.7 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003102/0.5532, allocations: 247.7 kB / 0.5065 GB, free: 135.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=57): time 2.855e-06/0.5532, allocations: 0 / 0.5065 GB, free: 135.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=61): time 0.003292/0.5565, allocations: 2.112 MB / 0.5085 GB, free: 135.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.017e-05/0.5566, allocations: 59.22 kB / 0.5086 GB, free: 135 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009713/0.5575, allocations: 0.9854 MB / 0.5095 GB, free: 134.9 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.5576, allocations: 34.77 kB / 0.5096 GB, free: 134.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.5577, allocations: 373.6 kB / 0.5099 GB, free: 134.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.598e-05/0.5579, allocations: 203.6 kB / 0.5101 GB, free: 134.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/0.5579, allocations: 0 / 0.5101 GB, free: 134.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.329e-05/0.5579, allocations: 329.2 kB / 0.5104 GB, free: 134.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.5581, allocations: 159.9 kB / 0.5106 GB, free: 134.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/0.5584, allocations: 319.6 kB / 0.5109 GB, free: 134.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005635/0.559, allocations: 338 kB / 0.5112 GB, free: 134.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.559, allocations: 3.625 kB / 0.5112 GB, free: 134.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001275/0.5603, allocations: 0.9352 MB / 0.5121 GB, free: 133.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.5603, allocations: 8.375 kB / 0.5121 GB, free: 133.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.233e-05/0.5604, allocations: 60.05 kB / 0.5122 GB, free: 133.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003419/0.5607, allocations: 142.4 kB / 0.5123 GB, free: 133.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004384/0.5612, allocations: 121.8 kB / 0.5124 GB, free: 133.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/0.5632, allocations: 2.186 MB / 0.5146 GB, free: 132.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004755/0.5637, allocations: 23.27 kB / 0.5146 GB, free: 132.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.973e-05/0.5638, allocations: 35.59 kB / 0.5146 GB, free: 132.6 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: T2.vcs:VARIABLE(unit = "V" ) type: Real T1.vcs:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.v.counter,v.counter,$whenCondition1,$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 (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,64.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.5639, allocations: 126.9 kB / 0.5148 GB, free: 132.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.5641, allocations: 182.2 kB / 0.5149 GB, free: 132.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002069/0.5661, allocations: 1.028 MB / 0.5159 GB, free: 132.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.5662, allocations: 5.438 kB / 0.5159 GB, free: 132.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.5662, allocations: 3.438 kB / 0.5159 GB, free: 132.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.5662, allocations: 3.891 kB / 0.5159 GB, free: 132.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008045/0.567, allocations: 0.791 MB / 0.5167 GB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.496e-05/0.5671, allocations: 52.06 kB / 0.5168 GB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003191/0.5674, allocations: 77.8 kB / 0.5168 GB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003197/0.5677, allocations: 145.2 kB / 0.517 GB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.916e-05/0.5678, allocations: 15.05 kB / 0.517 GB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001917/0.5697, allocations: 2.171 MB / 0.5191 GB, free: 130.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.5697, allocations: 3.156 kB / 0.5191 GB, free: 130.8 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001421/0.5711, allocations: 1.082 MB / 0.5202 GB, free: 130.6 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001692/0.5728, allocations: 1.701 MB / 0.5218 GB, free: 130 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002475/0.5731, allocations: 244.6 kB / 0.5221 GB, free: 129.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.5733, allocations: 10.92 kB / 0.5221 GB, free: 129.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003786/0.5737, allocations: 22.34 kB / 0.5221 GB, free: 129.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.417e-05/0.5738, allocations: 41.89 kB / 0.5221 GB, free: 129.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.072e-05/0.5738, allocations: 27.42 kB / 0.5222 GB, free: 129.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0006936/0.5745, allocations: 0.7428 MB / 0.5229 GB, free: 129.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001387/0.5759, allocations: 408.8 kB / 0.5233 GB, free: 129.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vcs,T2.vbe,T2.vcs) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,50.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006723/0.5766, allocations: 0.5891 MB / 0.5239 GB, free: 129.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009699/0.5776, allocations: 0.724 MB / 0.5246 GB, free: 129.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5776, allocations: 0 / 0.5246 GB, free: 129.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006923/0.5783, allocations: 0.5223 MB / 0.5251 GB, free: 129.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004499/0.5787, allocations: 154.4 kB / 0.5252 GB, free: 129.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.5812, allocations: 1.786 MB / 0.527 GB, free: 128.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005338/0.5817, allocations: 1.275 MB / 0.5282 GB, free: 128.1 MB / 394.7 MB Notification: Performance of SimCode: time 6.72e-07/0.5818, allocations: 0 / 0.5282 GB, free: 128.1 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1)