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.00147/0.00147, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.407/1.407, allocations: 221.3 MB / 235.5 MB, free: 2.949 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.0008592/0.0008592, allocations: 88.03 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.98e-05/3.007e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.42 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3576/0.4673, allocations: 92.47 MB / 486.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.4675, allocations: 75.95 kB / 486.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1158/0.5834, allocations: 58.04 MB / 0.5322 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.5834, allocations: 224 / 0.5322 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.745e-05/0.5835, allocations: 20 kB / 0.5322 GB, free: 0.707 MB / 410.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.002282/0.5857, allocations: 1.551 MB / 0.5337 GB, free: 15.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.5858, allocations: 12.03 kB / 0.5337 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.926e-05/0.5859, allocations: 90.52 kB / 0.5338 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.5861, allocations: 193.8 kB / 0.534 GB, free: 14.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001707/0.5878, allocations: 1.147 MB / 0.5351 GB, free: 13.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.85e-05/0.5879, allocations: 33 kB / 0.5351 GB, free: 13.58 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.619e-05/0.588, allocations: 44 kB / 0.5352 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008208/0.5888, allocations: 484.3 kB / 0.5356 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.5888, allocations: 0 / 0.5356 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.73e-05/0.5889, allocations: 27.98 kB / 0.5357 GB, free: 13.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.5889, allocations: 8 kB / 0.5357 GB, free: 13.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006541/0.5896, allocations: 420.2 kB / 0.5361 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.5926, allocations: 2.126 MB / 0.5381 GB, free: 10.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007009/0.5934, allocations: 0.6546 MB / 0.5388 GB, free: 9.699 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005698/0.5939, allocations: 0.4907 MB / 0.5393 GB, free: 9.199 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008569/0.6025, allocations: 7.749 MB / 0.5468 GB, free: 244 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2181/0.8207, allocations: 267.6 kB / 0.5471 GB, free: 107.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=55): time 6.773e-06/0.8207, allocations: 0 / 0.5471 GB, free: 107.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=59): time 0.003568/0.8243, allocations: 1.674 MB / 0.5487 GB, free: 107.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.8244, allocations: 59.61 kB / 0.5488 GB, free: 107.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001459/0.8259, allocations: 1.067 MB / 0.5498 GB, free: 106.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.8259, allocations: 38.2 kB / 0.5498 GB, free: 106.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004649/0.8264, allocations: 0.7115 MB / 0.5505 GB, free: 106.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.8265, allocations: 205.1 kB / 0.5507 GB, free: 106.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.56e-05/0.8265, allocations: 9.781 kB / 0.5507 GB, free: 106.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.85e-05/0.8266, allocations: 333.4 kB / 0.5511 GB, free: 106.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.8269, allocations: 172.9 kB / 0.5512 GB, free: 106.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003156/0.8272, allocations: 329.3 kB / 0.5515 GB, free: 106.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003226/0.8275, allocations: 221.1 kB / 0.5518 GB, free: 106.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.8275, allocations: 1.031 kB / 0.5518 GB, free: 106.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001229/0.8288, allocations: 0.8481 MB / 0.5526 GB, free: 106 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.8288, allocations: 9.438 kB / 0.5526 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-05/0.8289, allocations: 57.08 kB / 0.5526 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003928/0.8293, allocations: 158.5 kB / 0.5528 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004564/0.8298, allocations: 116 kB / 0.5529 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/0.8321, allocations: 2.28 MB / 0.5551 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005749/0.8327, allocations: 35.16 kB / 0.5552 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.729e-05/0.8327, allocations: 34.22 kB / 0.5552 GB, free: 104.6 MB / 426.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 (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.0001295/0.8329, allocations: 143.5 kB / 0.5553 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.833, allocations: 177.3 kB / 0.5555 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001767/0.8348, allocations: 0.8508 MB / 0.5563 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.8348, allocations: 4.844 kB / 0.5563 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.8348, allocations: 5.516 kB / 0.5563 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.8349, allocations: 4.922 kB / 0.5564 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.8361, allocations: 0.8692 MB / 0.5572 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.689e-05/0.8362, allocations: 52.31 kB / 0.5573 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003262/0.8365, allocations: 73.28 kB / 0.5573 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000361/0.8369, allocations: 148.7 kB / 0.5575 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.292e-05/0.8369, allocations: 20 kB / 0.5575 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002277/0.8392, allocations: 2.264 MB / 0.5597 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.8392, allocations: 7.516 kB / 0.5597 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.8407, allocations: 0.974 MB / 0.5607 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003909/0.8411, allocations: 256.5 kB / 0.5609 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.8412, allocations: 9.562 kB / 0.5609 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003652/0.8416, allocations: 27.88 kB / 0.5609 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.8418, allocations: 46.22 kB / 0.561 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.735e-05/0.8418, allocations: 25.38 kB / 0.561 GB, free: 102.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001208/0.843, allocations: 0.8252 MB / 0.5618 GB, free: 102.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.843, allocations: 0 / 0.5618 GB, free: 102.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001221/0.8443, allocations: 425 kB / 0.5622 GB, free: 102.2 MB / 426.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 (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.00276/0.847, allocations: 1.962 MB / 0.5641 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.8484, allocations: 0.7846 MB / 0.5649 GB, free: 101.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8484, allocations: 0 / 0.5649 GB, free: 101.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000925/0.8494, allocations: 0.5662 MB / 0.5654 GB, free: 101.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009244/0.8503, allocations: 177.2 kB / 0.5656 GB, free: 101.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003758/0.8541, allocations: 2.107 MB / 0.5677 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007602/0.8548, allocations: 1.206 MB / 0.5689 GB, free: 99.77 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005913/0.8554, allocations: 156.1 kB / 0.569 GB, free: 99.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005537/0.856, allocations: 0.5567 MB / 0.5695 GB, free: 99.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/0.856, allocations: 3.938 kB / 0.5695 GB, free: 99.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04564/0.9017, allocations: 27.85 MB / 0.5967 GB, free: 97.88 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/0.9019, allocations: 180.4 kB / 0.5969 GB, free: 97.65 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.808/3.71, allocations: 3.688 kB / 0.5969 GB, free: 97.65 MB / 426.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