Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_cpp_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.001844/0.00185, allocations: 186.2 kB / 16.41 MB, free: 5.727 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.977/1.977, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.00115/0.00115, allocations: 95.55 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.0003953, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3332, allocations: 47.56 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1466/0.4798, allocations: 90.37 MB / 465 MB, free: 6.242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.4802, allocations: 75.97 kB / 465.1 MB, free: 6.168 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4425/0.9227, allocations: 54.6 MB / 0.5075 GB, free: 94.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.928e-06/0.9228, allocations: 4 kB / 0.5075 GB, free: 94.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.872e-05/0.9229, allocations: 25.67 kB / 0.5075 GB, free: 94.87 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.004236/0.9271, allocations: 1.857 MB / 0.5093 GB, free: 93.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.9272, allocations: 7.875 kB / 0.5093 GB, free: 93.74 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001983/0.9274, allocations: 91.16 kB / 0.5094 GB, free: 93.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002776/0.9277, allocations: 194.8 kB / 0.5096 GB, free: 93.6 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002601/0.9303, allocations: 1.151 MB / 0.5107 GB, free: 93.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.9304, allocations: 32.81 kB / 0.5108 GB, free: 93.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.9305, allocations: 49.34 kB / 0.5108 GB, free: 93.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.9319, allocations: 0.513 MB / 0.5113 GB, free: 93.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.9319, allocations: 0 / 0.5113 GB, free: 93.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-05/0.932, allocations: 15.94 kB / 0.5113 GB, free: 93.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.323e-05/0.9321, allocations: 18.58 kB / 0.5113 GB, free: 93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.9335, allocations: 0.4891 MB / 0.5118 GB, free: 92.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004471/0.938, allocations: 2.116 MB / 0.5139 GB, free: 91.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.9395, allocations: 0.7281 MB / 0.5146 GB, free: 91.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/0.9514, allocations: 7.679 MB / 0.5221 GB, free: 84.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008718/0.9524, allocations: 306.8 kB / 0.5224 GB, free: 84.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 3.306e-06/0.9524, allocations: 0 / 0.5224 GB, free: 84.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.00599/0.9584, allocations: 2.163 MB / 0.5245 GB, free: 82.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.9585, allocations: 63.62 kB / 0.5246 GB, free: 82.81 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001832/0.9603, allocations: 1.087 MB / 0.5256 GB, free: 82.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.692e-05/0.9604, allocations: 33.64 kB / 0.5257 GB, free: 82.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005327/0.961, allocations: 0.6412 MB / 0.5263 GB, free: 81.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000195/0.9612, allocations: 198.7 kB / 0.5265 GB, free: 81.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.718e-05/0.9612, allocations: 11.91 kB / 0.5265 GB, free: 81.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.793e-05/0.9613, allocations: 339.1 kB / 0.5268 GB, free: 81.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006728/0.962, allocations: 210.5 kB / 0.527 GB, free: 81.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007271/0.9628, allocations: 361.5 kB / 0.5274 GB, free: 80.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007485/0.9635, allocations: 254.2 kB / 0.5276 GB, free: 80.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.9636, allocations: 2.625 kB / 0.5276 GB, free: 80.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002126/0.9657, allocations: 0.7847 MB / 0.5284 GB, free: 80.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.9657, allocations: 7.188 kB / 0.5284 GB, free: 80.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001152/0.9659, allocations: 57.47 kB / 0.5284 GB, free: 80.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006387/0.9665, allocations: 156.9 kB / 0.5286 GB, free: 80.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008035/0.9673, allocations: 117.3 kB / 0.5287 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003596/0.9709, allocations: 2.338 MB / 0.531 GB, free: 78.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.9721, allocations: 34.58 kB / 0.531 GB, free: 78.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.919e-05/0.9722, allocations: 32.95 kB / 0.531 GB, free: 78.61 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.0007852/0.973, allocations: 280.2 kB / 0.5313 GB, free: 78.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002439/0.9732, allocations: 186.5 kB / 0.5315 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002997/0.9762, allocations: 0.91 MB / 0.5324 GB, free: 77.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.9763, allocations: 10.53 kB / 0.5324 GB, free: 77.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.9763, allocations: 3.031 kB / 0.5324 GB, free: 77.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.9763, allocations: 7.891 kB / 0.5324 GB, free: 77.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.9779, allocations: 0.8694 MB / 0.5332 GB, free: 77.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001047/0.978, allocations: 55.42 kB / 0.5333 GB, free: 77.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005885/0.9786, allocations: 65.25 kB / 0.5334 GB, free: 77.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005698/0.9792, allocations: 149.3 kB / 0.5335 GB, free: 77.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.978e-05/0.9792, allocations: 19.8 kB / 0.5335 GB, free: 77.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003464/0.9827, allocations: 2.302 MB / 0.5358 GB, free: 74.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.9828, allocations: 3.984 kB / 0.5358 GB, free: 74.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003013/0.9858, allocations: 1.091 MB / 0.5368 GB, free: 73.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005183/0.9863, allocations: 254.9 kB / 0.5371 GB, free: 73.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002191/0.9866, allocations: 12 kB / 0.5371 GB, free: 73.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006537/0.9872, allocations: 26.97 kB / 0.5371 GB, free: 73.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/0.9874, allocations: 52.92 kB / 0.5372 GB, free: 73.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.176e-05/0.9875, allocations: 23.95 kB / 0.5372 GB, free: 73.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00143/0.9889, allocations: 0.8473 MB / 0.538 GB, free: 72.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.9889, allocations: 0 / 0.538 GB, free: 72.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001536/0.9905, allocations: 423 kB / 0.5384 GB, free: 72.28 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.004138/0.9946, allocations: 2.069 MB / 0.5404 GB, free: 70.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002292/0.997, allocations: 0.8754 MB / 0.5413 GB, free: 69.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.997, allocations: 0 / 0.5413 GB, free: 69.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001498/0.9985, allocations: 0.6137 MB / 0.5419 GB, free: 68.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009828/0.9995, allocations: 158.1 kB / 0.542 GB, free: 68.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0191/1.019, allocations: 11.49 MB / 0.5533 GB, free: 56.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006598/1.019, allocations: 1.2 MB / 0.5544 GB, free: 55.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008617/1.02, allocations: 0.5618 MB / 0.555 GB, free: 54.73 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/1.02, allocations: 0 / 0.555 GB, free: 54.73 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.04/4.061, allocations: 28.79 MB / 0.5831 GB, free: 25.93 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat