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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009988/0.0009988, allocations: 181.8 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.000834/0.0008341, allocations: 100.8 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002548/0.0002547, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2059, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.103/0.309, allocations: 90.36 MB / 466.3 MB, free: 6.281 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.3092, allocations: 75.97 kB / 466.3 MB, free: 6.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2682/0.5774, allocations: 54.61 MB / 0.5087 GB, free: 94.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.5775, allocations: 2.078 kB / 0.5087 GB, free: 94.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001038/0.5776, allocations: 23.53 kB / 0.5088 GB, free: 94.95 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003678/0.5813, allocations: 1.855 MB / 0.5106 GB, free: 93.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.5813, allocations: 11.81 kB / 0.5106 GB, free: 93.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002177/0.5816, allocations: 93.56 kB / 0.5107 GB, free: 93.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003304/0.5819, allocations: 199.7 kB / 0.5109 GB, free: 93.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/0.5838, allocations: 1.148 MB / 0.512 GB, free: 93.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.017e-05/0.5838, allocations: 36.44 kB / 0.512 GB, free: 93.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.5839, allocations: 43.59 kB / 0.5121 GB, free: 93.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008821/0.5848, allocations: 0.5181 MB / 0.5126 GB, free: 93.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.5848, allocations: 0 / 0.5126 GB, free: 93.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.5849, allocations: 15.88 kB / 0.5126 GB, free: 93.08 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.5849, allocations: 19.5 kB / 0.5126 GB, free: 93.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008263/0.5857, allocations: 489.9 kB / 0.5131 GB, free: 92.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003354/0.5891, allocations: 2.13 MB / 0.5151 GB, free: 91.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008957/0.59, allocations: 0.7256 MB / 0.5159 GB, free: 91.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008048/0.5981, allocations: 7.675 MB / 0.5233 GB, free: 84.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005008/0.5986, allocations: 312.1 kB / 0.5236 GB, free: 84.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 2.996e-06/0.5987, allocations: 0 / 0.5236 GB, free: 84.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.00335/0.602, allocations: 2.162 MB / 0.5258 GB, free: 82.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.6021, allocations: 61.75 kB / 0.5258 GB, free: 82.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.6034, allocations: 1.09 MB / 0.5269 GB, free: 82.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.6034, allocations: 33.11 kB / 0.5269 GB, free: 82.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004076/0.6039, allocations: 0.7155 MB / 0.5276 GB, free: 81.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.604, allocations: 202.1 kB / 0.5278 GB, free: 81.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.73e-05/0.604, allocations: 11.97 kB / 0.5278 GB, free: 81.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.469e-05/0.6041, allocations: 329.3 kB / 0.5281 GB, free: 81.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003472/0.6045, allocations: 205.8 kB / 0.5283 GB, free: 81.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003786/0.6048, allocations: 374.7 kB / 0.5287 GB, free: 81.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003988/0.6052, allocations: 252.9 kB / 0.5289 GB, free: 80.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.6053, allocations: 0 / 0.5289 GB, free: 80.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001389/0.6067, allocations: 0.9283 MB / 0.5298 GB, free: 80.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.6067, allocations: 9.531 kB / 0.5298 GB, free: 80.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.944e-05/0.6068, allocations: 61.02 kB / 0.5299 GB, free: 80.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003654/0.6071, allocations: 156 kB / 0.53 GB, free: 80.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004141/0.6076, allocations: 113.5 kB / 0.5302 GB, free: 80.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/0.6099, allocations: 2.34 MB / 0.5324 GB, free: 78.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007506/0.6106, allocations: 34.05 kB / 0.5325 GB, free: 78.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.771e-05/0.6107, allocations: 32.84 kB / 0.5325 GB, free: 78.62 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: T2.vbx:VARIABLE(unit = "V" fixed = true ) type: Real T1.vbx:VARIABLE(unit = "V" fixed = true ) 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * 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 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007096/0.6114, allocations: 281.4 kB / 0.5328 GB, free: 78.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003183/0.6118, allocations: 182 kB / 0.5329 GB, free: 78.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001988/0.6138, allocations: 0.9249 MB / 0.5338 GB, free: 77.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.6138, allocations: 4 kB / 0.5339 GB, free: 77.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.6138, allocations: 4 kB / 0.5339 GB, free: 77.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.6138, allocations: 0 / 0.5339 GB, free: 77.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.615, allocations: 0.8674 MB / 0.5347 GB, free: 77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.919e-05/0.615, allocations: 55.38 kB / 0.5348 GB, free: 76.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002928/0.6153, allocations: 68.88 kB / 0.5348 GB, free: 76.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003113/0.6157, allocations: 146.3 kB / 0.535 GB, free: 76.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.6157, allocations: 23.94 kB / 0.535 GB, free: 76.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.6177, allocations: 2.308 MB / 0.5372 GB, free: 74.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.6177, allocations: 0 / 0.5372 GB, free: 74.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.6192, allocations: 1.09 MB / 0.5383 GB, free: 73.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004237/0.6197, allocations: 252.5 kB / 0.5385 GB, free: 73.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/0.6199, allocations: 12 kB / 0.5386 GB, free: 73.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004021/0.6203, allocations: 19.66 kB / 0.5386 GB, free: 73.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.6204, allocations: 49.31 kB / 0.5386 GB, free: 73.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.6204, allocations: 35.22 kB / 0.5387 GB, free: 73.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009357/0.6214, allocations: 0.845 MB / 0.5395 GB, free: 72.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6214, allocations: 0 / 0.5395 GB, free: 72.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00109/0.6225, allocations: 423 kB / 0.5399 GB, free: 71.99 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.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 24 * 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.002532/0.625, allocations: 2.07 MB / 0.5419 GB, free: 70.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.6264, allocations: 0.8679 MB / 0.5428 GB, free: 69.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6264, allocations: 0 / 0.5428 GB, free: 69.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008254/0.6273, allocations: 0.6137 MB / 0.5434 GB, free: 68.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000715/0.628, allocations: 162.8 kB / 0.5435 GB, free: 68.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/0.6414, allocations: 11.45 MB / 0.5547 GB, free: 56.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005322/0.642, allocations: 1.2 MB / 0.5559 GB, free: 55.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005279/0.6425, allocations: 149.5 kB / 0.556 GB, free: 54.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004655/0.643, allocations: 0.5579 MB / 0.5565 GB, free: 54.34 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.643, allocations: 0 / 0.5565 GB, free: 54.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04512/0.6881, allocations: 27.69 MB / 0.5836 GB, free: 26.64 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/0.6883, allocations: 197.2 kB / 0.5838 GB, free: 26.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.828/3.516, allocations: 4 kB / 0.5838 GB, free: 26.39 MB / 378.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)