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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 94.05 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000316/0.000316, allocations: 11.98 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2818, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.3959, allocations: 92.54 MB / 494.1 MB, free: 3.855 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.3962, allocations: 72.62 kB / 494.2 MB, free: 3.785 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.34/0.7363, allocations: 58.19 MB / 0.5394 GB, free: 73.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7363, allocations: 0 / 0.5394 GB, free: 73.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.56e-05/0.7364, allocations: 24 kB / 0.5395 GB, free: 73.46 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.002934/0.7393, allocations: 1.855 MB / 0.5413 GB, free: 71.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.7394, allocations: 8.031 kB / 0.5413 GB, free: 71.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.624e-05/0.7395, allocations: 90.52 kB / 0.5414 GB, free: 71.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.7396, allocations: 193.8 kB / 0.5415 GB, free: 71.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.7411, allocations: 1.154 MB / 0.5427 GB, free: 70.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.7412, allocations: 36.98 kB / 0.5427 GB, free: 70.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.075e-05/0.7412, allocations: 44 kB / 0.5428 GB, free: 69.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007954/0.742, allocations: 0.5158 MB / 0.5433 GB, free: 69.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.7421, allocations: 0 / 0.5433 GB, free: 69.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.449e-05/0.7421, allocations: 20 kB / 0.5433 GB, free: 69.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.7421, allocations: 16 kB / 0.5433 GB, free: 69.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007939/0.7429, allocations: 496 kB / 0.5438 GB, free: 68.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.7455, allocations: 2.126 MB / 0.5458 GB, free: 66.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007866/0.7463, allocations: 0.7223 MB / 0.5465 GB, free: 65.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007531/0.7539, allocations: 7.698 MB / 0.5541 GB, free: 57.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005142/0.7544, allocations: 302.5 kB / 0.5543 GB, free: 56.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 2.936e-06/0.7544, allocations: 0 / 0.5543 GB, free: 56.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.003237/0.7577, allocations: 2.158 MB / 0.5565 GB, free: 54.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/0.7577, allocations: 59.84 kB / 0.5565 GB, free: 54.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/0.7589, allocations: 1.084 MB / 0.5576 GB, free: 53.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.652e-05/0.7589, allocations: 37.69 kB / 0.5576 GB, free: 53.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004313/0.7594, allocations: 0.715 MB / 0.5583 GB, free: 52.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.962e-05/0.7595, allocations: 201.1 kB / 0.5585 GB, free: 52.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.7595, allocations: 16 kB / 0.5585 GB, free: 52.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.743e-05/0.7596, allocations: 337.9 kB / 0.5588 GB, free: 52.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003421/0.7599, allocations: 201.5 kB / 0.559 GB, free: 51.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/0.7604, allocations: 384.4 kB / 0.5594 GB, free: 51.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003945/0.7608, allocations: 250 kB / 0.5596 GB, free: 51.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.7608, allocations: 3.953 kB / 0.5596 GB, free: 51.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001273/0.762, allocations: 0.9301 MB / 0.5605 GB, free: 50.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.7621, allocations: 7.938 kB / 0.5606 GB, free: 50.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.345e-05/0.7621, allocations: 59.98 kB / 0.5606 GB, free: 50.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003602/0.7625, allocations: 155.8 kB / 0.5608 GB, free: 49.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000434/0.763, allocations: 111.9 kB / 0.5609 GB, free: 49.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.7651, allocations: 2.344 MB / 0.5632 GB, free: 47.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.7656, allocations: 44.02 kB / 0.5632 GB, free: 47.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.504e-05/0.7657, allocations: 32 kB / 0.5632 GB, free: 47.31 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 () * 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,75.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004502/0.7662, allocations: 269.7 kB / 0.5635 GB, free: 47.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.7663, allocations: 181.9 kB / 0.5637 GB, free: 46.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.768, allocations: 0.9138 MB / 0.5645 GB, free: 45.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.768, allocations: 4 kB / 0.5646 GB, free: 45.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.768, allocations: 4 kB / 0.5646 GB, free: 45.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.768, allocations: 3.984 kB / 0.5646 GB, free: 45.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009428/0.7689, allocations: 0.8593 MB / 0.5654 GB, free: 45.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.135e-05/0.769, allocations: 51.98 kB / 0.5654 GB, free: 44.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002878/0.7693, allocations: 71.89 kB / 0.5655 GB, free: 44.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003286/0.7697, allocations: 152.7 kB / 0.5657 GB, free: 44.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.063e-05/0.7697, allocations: 16 kB / 0.5657 GB, free: 44.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/0.7718, allocations: 2.315 MB / 0.5679 GB, free: 42.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.7718, allocations: 0 / 0.5679 GB, free: 42.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.7734, allocations: 1.092 MB / 0.569 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003579/0.7737, allocations: 255 kB / 0.5692 GB, free: 40.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.7739, allocations: 8 kB / 0.5693 GB, free: 40.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003373/0.7742, allocations: 23.98 kB / 0.5693 GB, free: 40.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.7743, allocations: 44.38 kB / 0.5693 GB, free: 40.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.021e-05/0.7744, allocations: 23.98 kB / 0.5693 GB, free: 40.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008776/0.7753, allocations: 0.8461 MB / 0.5702 GB, free: 39.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.7753, allocations: 3.938 kB / 0.5702 GB, free: 39.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001017/0.7763, allocations: 431.5 kB / 0.5706 GB, free: 39.53 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.002376/0.7787, allocations: 2.071 MB / 0.5726 GB, free: 37.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.78, allocations: 0.8679 MB / 0.5735 GB, free: 36.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.7801, allocations: 0 / 0.5735 GB, free: 36.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008245/0.7809, allocations: 0.6096 MB / 0.5741 GB, free: 35.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007439/0.7816, allocations: 188.6 kB / 0.5742 GB, free: 35.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.7931, allocations: 11.45 MB / 0.5854 GB, free: 23.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004805/0.7937, allocations: 1.204 MB / 0.5866 GB, free: 22.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005686/0.7943, allocations: 161.5 kB / 0.5867 GB, free: 22.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004561/0.7947, allocations: 0.554 MB / 0.5873 GB, free: 21.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/0.7947, allocations: 0 / 0.5873 GB, free: 21.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04722/0.842, allocations: 27.75 MB / 0.6144 GB, free: 10.15 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000273/0.8423, allocations: 204.9 kB / 0.6146 GB, free: 9.898 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.842/3.684, allocations: 0 / 0.6146 GB, free: 9.898 MB / 394.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat