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.001042/0.001042, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009513/0.0009513, allocations: 98.95 kB / 286.7 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.351e-05/2.358e-05, allocations: 4 kB / 343.8 MB, free: 8.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 51.47 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3698/0.4795, allocations: 92.64 MB / 487.9 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.4798, allocations: 69.28 kB / 488 MB, free: 480 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1153/0.5951, allocations: 55.3 MB / 0.5305 GB, free: 14.31 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.5951, allocations: 4 kB / 0.5305 GB, free: 14.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001271/0.5953, allocations: 23.94 kB / 0.5305 GB, free: 14.28 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.003364/0.5986, allocations: 1.554 MB / 0.5321 GB, free: 12.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.5987, allocations: 8.031 kB / 0.5321 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004566/0.5992, allocations: 193.8 kB / 0.5323 GB, free: 12.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00199/0.6012, allocations: 1.139 MB / 0.5334 GB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.6012, allocations: 17.72 kB / 0.5334 GB, free: 11.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.6013, allocations: 28 kB / 0.5334 GB, free: 11.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007163/0.6021, allocations: 394.5 kB / 0.5338 GB, free: 10.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007699/0.6028, allocations: 423.9 kB / 0.5342 GB, free: 10.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.6029, allocations: 3.984 kB / 0.5342 GB, free: 10.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.265e-05/0.6029, allocations: 7.953 kB / 0.5342 GB, free: 10.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.6029, allocations: 12 kB / 0.5342 GB, free: 10.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.6064, allocations: 2.033 MB / 0.5362 GB, free: 8.332 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006736/0.6071, allocations: 0.6408 MB / 0.5368 GB, free: 7.637 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005625/0.6077, allocations: 474 kB / 0.5373 GB, free: 7.168 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01019/0.6179, allocations: 7.757 MB / 0.5449 GB, free: 14.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000442/0.6184, allocations: 254.5 kB / 0.5451 GB, free: 13.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=55): time 3.697e-06/0.6184, allocations: 4 kB / 0.5451 GB, free: 13.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=59): time 0.00492/0.6234, allocations: 2.233 MB / 0.5473 GB, free: 11.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.6235, allocations: 67.73 kB / 0.5473 GB, free: 11.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/0.625, allocations: 0.9903 MB / 0.5483 GB, free: 10.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.6251, allocations: 25.7 kB / 0.5483 GB, free: 10.56 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005731/0.6256, allocations: 0.7112 MB / 0.549 GB, free: 9.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.6258, allocations: 197.1 kB / 0.5492 GB, free: 9.645 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.6259, allocations: 0 / 0.5492 GB, free: 9.645 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.626, allocations: 330 kB / 0.5495 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.6263, allocations: 161.5 kB / 0.5497 GB, free: 9.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003797/0.6267, allocations: 312.2 kB / 0.55 GB, free: 8.789 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008524/0.6275, allocations: 373.7 kB / 0.5503 GB, free: 8.418 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.472e-05/0.6276, allocations: 4 kB / 0.5503 GB, free: 8.414 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001836/0.6294, allocations: 0.95 MB / 0.5513 GB, free: 7.453 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.6295, allocations: 12 kB / 0.5513 GB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.902e-05/0.6296, allocations: 55.98 kB / 0.5513 GB, free: 7.387 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004081/0.63, allocations: 138.2 kB / 0.5515 GB, free: 7.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000483/0.6305, allocations: 129.4 kB / 0.5516 GB, free: 7.125 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002772/0.6333, allocations: 2.23 MB / 0.5538 GB, free: 4.781 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006612/0.6339, allocations: 15.98 kB / 0.5538 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.411e-05/0.634, allocations: 36.06 kB / 0.5538 GB, free: 4.73 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 {(5,64.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.6342, allocations: 124.8 kB / 0.5539 GB, free: 4.602 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001741/0.636, allocations: 0.8443 MB / 0.5548 GB, free: 3.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002994/0.6363, allocations: 181.8 kB / 0.5549 GB, free: 3.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00226/0.6385, allocations: 0.971 MB / 0.5559 GB, free: 2.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.6386, allocations: 7.938 kB / 0.5559 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.6386, allocations: 4.125 kB / 0.5559 GB, free: 2.578 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.6386, allocations: 7.984 kB / 0.5559 GB, free: 2.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.6401, allocations: 0.7849 MB / 0.5567 GB, free: 1.746 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-05/0.6402, allocations: 51.98 kB / 0.5567 GB, free: 1.695 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000334/0.6406, allocations: 75.84 kB / 0.5568 GB, free: 1.621 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003449/0.6409, allocations: 147 kB / 0.5569 GB, free: 1.477 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.748e-05/0.641, allocations: 19.98 kB / 0.557 GB, free: 1.457 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002614/0.6436, allocations: 2.214 MB / 0.5591 GB, free: 15.13 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.6436, allocations: 0 / 0.5591 GB, free: 15.13 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/0.6457, allocations: 1.101 MB / 0.5602 GB, free: 14.01 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005258/0.6462, allocations: 251 kB / 0.5604 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002448/0.6465, allocations: 0 / 0.5604 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00046/0.647, allocations: 19.94 kB / 0.5605 GB, free: 13.72 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.6471, allocations: 56.45 kB / 0.5605 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.006e-05/0.6472, allocations: 23.98 kB / 0.5605 GB, free: 13.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001282/0.6485, allocations: 0.7448 MB / 0.5613 GB, free: 12.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6485, allocations: 0 / 0.5613 GB, free: 12.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001284/0.6498, allocations: 407.5 kB / 0.5616 GB, free: 12.51 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.003108/0.6529, allocations: 2.141 MB / 0.5637 GB, free: 10.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.6542, allocations: 0.7518 MB / 0.5645 GB, free: 9.566 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.6543, allocations: 0 / 0.5645 GB, free: 9.566 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008412/0.6551, allocations: 0.5469 MB / 0.565 GB, free: 9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008575/0.656, allocations: 177.1 kB / 0.5652 GB, free: 8.832 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003646/0.6596, allocations: 2.079 MB / 0.5672 GB, free: 6.703 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007736/0.6604, allocations: 1.2 MB / 0.5684 GB, free: 5.473 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005571/0.661, allocations: 153.5 kB / 0.5685 GB, free: 5.32 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005816/0.6616, allocations: 0.5579 MB / 0.5691 GB, free: 4.762 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6616, allocations: 0 / 0.5691 GB, free: 4.762 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.275/0.9366, allocations: 24.26 MB / 0.5928 GB, free: 92.32 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/0.9368, allocations: 137.2 kB / 0.5929 GB, free: 92.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.863/3.8, allocations: 5.688 kB / 0.5929 GB, free: 92.12 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