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.001232/0.001233, allocations: 202.6 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.2 MB / 245 MB, free: 5.883 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009086/0.0009086, allocations: 102.4 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000219/0.000219, allocations: 4 kB / 358 MB, free: 9.207 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.206, allocations: 51.47 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1095/0.3155, allocations: 93.36 MB / 0.4911 GB, free: 13.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.3158, allocations: 67.97 kB / 0.4911 GB, free: 13.13 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2761/0.5919, allocations: 58.33 MB / 0.5481 GB, free: 62.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.5919, allocations: 0 / 0.5481 GB, free: 62.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.518e-05/0.592, allocations: 23.94 kB / 0.5481 GB, free: 62.32 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.002982/0.595, allocations: 1.855 MB / 0.5499 GB, free: 60.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.595, allocations: 12.03 kB / 0.5499 GB, free: 60.4 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.976e-05/0.5952, allocations: 94.47 kB / 0.55 GB, free: 60.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001949/0.5954, allocations: 193.8 kB / 0.5502 GB, free: 60.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/0.5968, allocations: 1.15 MB / 0.5513 GB, free: 58.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.5969, allocations: 33 kB / 0.5514 GB, free: 58.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.061e-05/0.597, allocations: 51.88 kB / 0.5514 GB, free: 58.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007688/0.5977, allocations: 0.5197 MB / 0.5519 GB, free: 58.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.5978, allocations: 0 / 0.5519 GB, free: 58.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.221e-05/0.5978, allocations: 16 kB / 0.5519 GB, free: 58.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.5978, allocations: 23.94 kB / 0.552 GB, free: 58.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007694/0.5986, allocations: 488.1 kB / 0.5524 GB, free: 57.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00255/0.6012, allocations: 2.137 MB / 0.5545 GB, free: 55.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007846/0.602, allocations: 0.7334 MB / 0.5552 GB, free: 54.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006946/0.6089, allocations: 7.698 MB / 0.5628 GB, free: 45.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004664/0.6094, allocations: 302.5 kB / 0.563 GB, free: 45.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 3.867e-06/0.6094, allocations: 0 / 0.563 GB, free: 45.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.003142/0.6126, allocations: 2.166 MB / 0.5652 GB, free: 43.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.6126, allocations: 59.84 kB / 0.5652 GB, free: 43.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.6137, allocations: 1.088 MB / 0.5663 GB, free: 42.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.496e-05/0.6138, allocations: 33.7 kB / 0.5663 GB, free: 42.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004306/0.6142, allocations: 0.7227 MB / 0.567 GB, free: 41.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.6143, allocations: 197.1 kB / 0.5672 GB, free: 41.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.643e-05/0.6144, allocations: 12 kB / 0.5672 GB, free: 41.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.315e-05/0.6144, allocations: 333.9 kB / 0.5675 GB, free: 40.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003471/0.6148, allocations: 205.6 kB / 0.5677 GB, free: 40.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003977/0.6152, allocations: 375.6 kB / 0.5681 GB, free: 40.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003959/0.6156, allocations: 257.9 kB / 0.5683 GB, free: 39.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.6156, allocations: 0 / 0.5683 GB, free: 39.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001279/0.6169, allocations: 0.9299 MB / 0.5692 GB, free: 39.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.6169, allocations: 15.94 kB / 0.5693 GB, free: 39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.279e-05/0.617, allocations: 52 kB / 0.5693 GB, free: 38.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003503/0.6174, allocations: 163.8 kB / 0.5695 GB, free: 38.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/0.6178, allocations: 111.9 kB / 0.5696 GB, free: 38.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002098/0.6199, allocations: 2.337 MB / 0.5718 GB, free: 36.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005238/0.6204, allocations: 32.03 kB / 0.5719 GB, free: 36.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.277e-05/0.6205, allocations: 35.98 kB / 0.5719 GB, free: 36.14 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.0004091/0.6209, allocations: 269.7 kB / 0.5722 GB, free: 35.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.6211, allocations: 181.8 kB / 0.5723 GB, free: 35.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001684/0.6228, allocations: 0.9138 MB / 0.5732 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.6228, allocations: 11.95 kB / 0.5732 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.6228, allocations: 0 / 0.5732 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.6228, allocations: 3.984 kB / 0.5733 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009748/0.6238, allocations: 0.8632 MB / 0.5741 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.815e-05/0.6239, allocations: 59.98 kB / 0.5742 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003068/0.6242, allocations: 71.89 kB / 0.5742 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003238/0.6245, allocations: 159.2 kB / 0.5744 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.64e-05/0.6246, allocations: 20 kB / 0.5744 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00196/0.6265, allocations: 2.31 MB / 0.5766 GB, free: 31.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.6265, allocations: 0 / 0.5766 GB, free: 31.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001601/0.6282, allocations: 1.092 MB / 0.5777 GB, free: 29.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003452/0.6285, allocations: 247 kB / 0.5779 GB, free: 29.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.6287, allocations: 11.98 kB / 0.578 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000371/0.629, allocations: 27.94 kB / 0.578 GB, free: 29.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.552e-05/0.6292, allocations: 48.38 kB / 0.578 GB, free: 29.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.89e-05/0.6292, allocations: 23.98 kB / 0.5781 GB, free: 29.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000835/0.63, allocations: 0.8421 MB / 0.5789 GB, free: 28.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.63, allocations: 0 / 0.5789 GB, free: 28.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001042/0.6311, allocations: 439.5 kB / 0.5793 GB, free: 28.34 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.002404/0.6335, allocations: 2.08 MB / 0.5813 GB, free: 26.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.6348, allocations: 0.8602 MB / 0.5822 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.6349, allocations: 4.188 kB / 0.5822 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008198/0.6357, allocations: 0.6136 MB / 0.5828 GB, free: 24.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000615/0.6363, allocations: 185.2 kB / 0.5829 GB, free: 24.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.647, allocations: 11.45 MB / 0.5941 GB, free: 12.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.6475, allocations: 1.2 MB / 0.5953 GB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005397/0.6481, allocations: 153.5 kB / 0.5955 GB, free: 11.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004473/0.6485, allocations: 0.5617 MB / 0.596 GB, free: 10.46 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.6485, allocations: 0 / 0.596 GB, free: 10.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0477/0.6962, allocations: 27.78 MB / 0.6231 GB, free: 14.82 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002246/0.6965, allocations: 194.9 kB / 0.6233 GB, free: 14.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.757/3.454, allocations: 3.938 kB / 0.6233 GB, free: 14.58 MB / 410.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