Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.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.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009474/0.0009475, allocations: 187.4 kB / 8.133 MB, free: 2.203 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.078/1.078, allocations: 221.4 MB / 229.9 MB, free: 3.113 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.0009763/0.0009763, allocations: 92.8 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09083/0.09184, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1684/0.2602, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08796/0.3482, allocations: 91.73 MB / 478.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001884/0.3485, allocations: 79.89 kB / 478.8 MB, free: 10.94 MB / 362.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.2305/0.579, allocations: 56.89 MB / 0.5231 GB, free: 85.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.579, allocations: 8 kB / 0.5231 GB, free: 85.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.5793, allocations: 198.5 kB / 0.5233 GB, free: 84.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.5807, allocations: 1.141 MB / 0.5245 GB, free: 83.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.5807, allocations: 12.66 kB / 0.5245 GB, free: 83.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.931e-05/0.5808, allocations: 31.91 kB / 0.5245 GB, free: 83.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005762/0.5814, allocations: 394.2 kB / 0.5249 GB, free: 83.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005695/0.582, allocations: 422.3 kB / 0.5253 GB, free: 82.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.582, allocations: 0 / 0.5253 GB, free: 82.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.5821, allocations: 0 / 0.5253 GB, free: 82.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.5821, allocations: 19.92 kB / 0.5253 GB, free: 82.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.5846, allocations: 2.05 MB / 0.5273 GB, free: 80.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004481/0.585, allocations: 429.1 kB / 0.5277 GB, free: 80.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004198/0.5855, allocations: 453.6 kB / 0.5281 GB, free: 79.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006595/0.5921, allocations: 7.695 MB / 0.5357 GB, free: 71.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002961/0.5924, allocations: 255.7 kB / 0.5359 GB, free: 70.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 2.575e-06/0.5924, allocations: 3.984 kB / 0.5359 GB, free: 70.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.0033/0.5957, allocations: 2.099 MB / 0.5379 GB, free: 68.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.368e-05/0.5957, allocations: 55.84 kB / 0.538 GB, free: 68.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009501/0.5967, allocations: 0.9864 MB / 0.539 GB, free: 67.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.5967, allocations: 29.7 kB / 0.539 GB, free: 67.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.5969, allocations: 372.3 kB / 0.5393 GB, free: 67.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.815e-05/0.597, allocations: 208.8 kB / 0.5395 GB, free: 66.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.734e-05/0.597, allocations: 0 / 0.5395 GB, free: 66.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.365e-05/0.5971, allocations: 337.9 kB / 0.5399 GB, free: 66.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.5973, allocations: 153.4 kB / 0.54 GB, free: 66.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000265/0.5976, allocations: 321.8 kB / 0.5403 GB, free: 66.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005957/0.5982, allocations: 334.9 kB / 0.5406 GB, free: 65.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.5982, allocations: 4 kB / 0.5406 GB, free: 65.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001349/0.5995, allocations: 0.9388 MB / 0.5416 GB, free: 64.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.5996, allocations: 4 kB / 0.5416 GB, free: 64.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.482e-05/0.5997, allocations: 59.98 kB / 0.5416 GB, free: 64.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003479/0.6, allocations: 145.7 kB / 0.5418 GB, free: 64.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004398/0.6005, allocations: 127.6 kB / 0.5419 GB, free: 64.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002012/0.6025, allocations: 2.199 MB / 0.544 GB, free: 62.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004729/0.603, allocations: 19.98 kB / 0.5441 GB, free: 62.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.664e-05/0.603, allocations: 32 kB / 0.5441 GB, free: 62.11 MB / 378.7 MB 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.000104/0.6031, allocations: 120.9 kB / 0.5442 GB, free: 61.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.6033, allocations: 182 kB / 0.5444 GB, free: 61.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002042/0.6053, allocations: 1.017 MB / 0.5454 GB, free: 60.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.6053, allocations: 11.94 kB / 0.5454 GB, free: 60.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.6054, allocations: 8.125 kB / 0.5454 GB, free: 60.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.6054, allocations: 0 / 0.5454 GB, free: 60.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007004/0.6061, allocations: 0.7883 MB / 0.5462 GB, free: 59.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.506e-05/0.6062, allocations: 51.98 kB / 0.5462 GB, free: 59.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.6065, allocations: 71.89 kB / 0.5463 GB, free: 59.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003064/0.6068, allocations: 151.5 kB / 0.5464 GB, free: 59.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.067e-05/0.6068, allocations: 11.98 kB / 0.5464 GB, free: 59.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001898/0.6087, allocations: 2.17 MB / 0.5485 GB, free: 57.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.6088, allocations: 4 kB / 0.5485 GB, free: 57.38 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001397/0.6102, allocations: 1.071 MB / 0.5496 GB, free: 56.29 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001696/0.6119, allocations: 1.703 MB / 0.5513 GB, free: 54.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002556/0.6121, allocations: 259 kB / 0.5515 GB, free: 54.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001713/0.6123, allocations: 0 / 0.5515 GB, free: 54.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003853/0.6127, allocations: 27.89 kB / 0.5515 GB, free: 54.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.536e-05/0.6128, allocations: 36.38 kB / 0.5516 GB, free: 54.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.034e-05/0.6129, allocations: 20 kB / 0.5516 GB, free: 54.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006878/0.6135, allocations: 0.7487 MB / 0.5523 GB, free: 53.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001341/0.6149, allocations: 415.5 kB / 0.5527 GB, free: 53.07 MB / 378.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.0007266/0.6156, allocations: 0.5887 MB / 0.5533 GB, free: 52.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.6167, allocations: 0.7322 MB / 0.554 GB, free: 51.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6167, allocations: 0 / 0.554 GB, free: 51.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006985/0.6174, allocations: 0.5257 MB / 0.5545 GB, free: 51.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006094/0.618, allocations: 172.6 kB / 0.5547 GB, free: 51.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.6206, allocations: 1.782 MB / 0.5564 GB, free: 49.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005404/0.6211, allocations: 1.279 MB / 0.5577 GB, free: 47.92 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.6212, allocations: 4 kB / 0.5577 GB, free: 47.92 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1)