Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001757/0.001757, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001159/0.001159, allocations: 89.25 kB / 292.1 MB, free: 5.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.747e-05/4.75e-05, allocations: 3.984 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1399, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3745/0.5145, allocations: 93.29 MB / 495.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/0.5148, allocations: 70.97 kB / 495.5 MB, free: 12.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.125/0.6398, allocations: 58.19 MB / 0.5407 GB, free: 3.543 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.6399, allocations: 0 / 0.5407 GB, free: 3.543 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001153/0.64, allocations: 24 kB / 0.5407 GB, free: 3.52 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.00319/0.6432, allocations: 1.552 MB / 0.5422 GB, free: 1.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.6432, allocations: 12.03 kB / 0.5422 GB, free: 1.918 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001665/0.6434, allocations: 90.5 kB / 0.5423 GB, free: 1.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003639/0.6438, allocations: 193.8 kB / 0.5425 GB, free: 1.629 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002281/0.6461, allocations: 1.135 MB / 0.5436 GB, free: 460 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.205e-05/0.6461, allocations: 38.72 kB / 0.5437 GB, free: 420 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.6463, allocations: 44 kB / 0.5437 GB, free: 376 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000971/0.6473, allocations: 490.3 kB / 0.5442 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.6473, allocations: 0 / 0.5442 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.583e-05/0.6473, allocations: 16 kB / 0.5442 GB, free: 15.87 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/0.6474, allocations: 27.94 kB / 0.5442 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000751/0.6481, allocations: 416.2 kB / 0.5446 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003829/0.652, allocations: 2.124 MB / 0.5467 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007996/0.6528, allocations: 0.6607 MB / 0.5473 GB, free: 12.54 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006179/0.6534, allocations: 494 kB / 0.5478 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.664, allocations: 7.779 MB / 0.5554 GB, free: 3.062 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004584/0.6645, allocations: 262.6 kB / 0.5556 GB, free: 2.797 MB / 426.7 MB Notification: Performance of pre-optimization done (n=55): time 3.015e-06/0.6645, allocations: 0 / 0.5556 GB, free: 2.797 MB / 426.7 MB Notification: Performance of matching and sorting (n=59): time 0.003035/0.6675, allocations: 1.672 MB / 0.5573 GB, free: 1.066 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.6676, allocations: 59.84 kB / 0.5573 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.6691, allocations: 1.08 MB / 0.5584 GB, free: 15.92 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.598e-05/0.6692, allocations: 33.7 kB / 0.5584 GB, free: 15.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005942/0.6698, allocations: 0.7072 MB / 0.5591 GB, free: 15.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.67, allocations: 209 kB / 0.5593 GB, free: 14.96 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-05/0.67, allocations: 13.69 kB / 0.5593 GB, free: 14.95 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.6701, allocations: 330 kB / 0.5596 GB, free: 14.62 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.6704, allocations: 173.6 kB / 0.5598 GB, free: 14.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004016/0.6708, allocations: 331.7 kB / 0.5601 GB, free: 14.06 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003616/0.6712, allocations: 215 kB / 0.5603 GB, free: 13.85 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.6712, allocations: 4 kB / 0.5603 GB, free: 13.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00143/0.6727, allocations: 0.8523 MB / 0.5612 GB, free: 12.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.6727, allocations: 12.02 kB / 0.5612 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.173e-05/0.6728, allocations: 59.98 kB / 0.5612 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000419/0.6732, allocations: 146 kB / 0.5614 GB, free: 12.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004666/0.6737, allocations: 123.8 kB / 0.5615 GB, free: 12.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002689/0.6764, allocations: 2.274 MB / 0.5637 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005999/0.677, allocations: 40.02 kB / 0.5637 GB, free: 10.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.62e-05/0.6771, allocations: 32 kB / 0.5638 GB, free: 10.18 MB / 442.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.0001419/0.6773, allocations: 144.8 kB / 0.5639 GB, free: 10.03 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002259/0.6775, allocations: 181.8 kB / 0.5641 GB, free: 9.848 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/0.6793, allocations: 0.8442 MB / 0.5649 GB, free: 8.988 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.6793, allocations: 11.95 kB / 0.5649 GB, free: 8.977 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.6794, allocations: 0.6562 kB / 0.5649 GB, free: 8.977 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.6794, allocations: 7.984 kB / 0.5649 GB, free: 8.969 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00124/0.6806, allocations: 0.863 MB / 0.5658 GB, free: 8.059 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.146e-05/0.6807, allocations: 55.98 kB / 0.5658 GB, free: 8.004 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.681, allocations: 63.89 kB / 0.5659 GB, free: 7.941 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000383/0.6814, allocations: 158.5 kB / 0.566 GB, free: 7.785 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.761e-05/0.6815, allocations: 19.98 kB / 0.5661 GB, free: 7.766 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002751/0.6842, allocations: 2.267 MB / 0.5683 GB, free: 5.367 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.6843, allocations: 0 / 0.5683 GB, free: 5.367 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.686, allocations: 0.975 MB / 0.5692 GB, free: 4.371 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006503/0.6867, allocations: 255 kB / 0.5695 GB, free: 4.102 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003058/0.687, allocations: 15.97 kB / 0.5695 GB, free: 4.086 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004871/0.6875, allocations: 31.94 kB / 0.5695 GB, free: 4.055 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.6877, allocations: 48.38 kB / 0.5696 GB, free: 4.008 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.695e-05/0.6878, allocations: 27.92 kB / 0.5696 GB, free: 3.98 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001361/0.6891, allocations: 0.8267 MB / 0.5704 GB, free: 3.164 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6891, allocations: 0 / 0.5704 GB, free: 3.164 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0013/0.6904, allocations: 427.5 kB / 0.5708 GB, free: 2.746 MB / 442.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.002781/0.6932, allocations: 1.96 MB / 0.5727 GB, free: 0.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.221/0.9143, allocations: 0.7757 MB / 0.5735 GB, free: 96.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.9143, allocations: 0 / 0.5735 GB, free: 96.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.9154, allocations: 0.5655 MB / 0.574 GB, free: 96.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009265/0.9164, allocations: 186.3 kB / 0.5742 GB, free: 96.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003369/0.9197, allocations: 2.109 MB / 0.5763 GB, free: 95.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00051/0.9203, allocations: 1.201 MB / 0.5774 GB, free: 95.22 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005078/0.9208, allocations: 151.9 kB / 0.5776 GB, free: 95.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/0.9213, allocations: 0.5605 MB / 0.5781 GB, free: 95.21 MB / 442.7 MB Notification: Performance of SimCode: time 8.72e-07/0.9213, allocations: 0 / 0.5781 GB, free: 95.21 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05659/0.9779, allocations: 27.86 MB / 0.6053 GB, free: 94.02 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.9781, allocations: 170.5 kB / 0.6055 GB, free: 93.79 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.963/3.941, allocations: 0 / 0.6055 GB, free: 93.79 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat