Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_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.001438/0.001438, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.584/1.584, allocations: 205.3 MB / 214.4 MB, free: 1.68 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009783/0.0009781, allocations: 94.48 kB / 262.5 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.11e-05/2.096e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09518/0.09521, allocations: 47.59 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.303/0.3983, allocations: 89.86 MB / 453 MB, free: 5.766 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.3986, allocations: 69.66 kB / 453.1 MB, free: 5.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1062/0.5048, allocations: 51.58 MB / 0.4928 GB, free: 8.047 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.5048, allocations: 0 / 0.4928 GB, free: 8.047 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.194e-05/0.5049, allocations: 24 kB / 0.4929 GB, free: 8.023 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.002727/0.5076, allocations: 1.548 MB / 0.4944 GB, free: 6.426 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.5077, allocations: 8.031 kB / 0.4944 GB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002265/0.5079, allocations: 197.7 kB / 0.4946 GB, free: 6.223 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.5096, allocations: 1.139 MB / 0.4957 GB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.5097, allocations: 27.92 kB / 0.4957 GB, free: 5.008 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.664e-05/0.5097, allocations: 27.94 kB / 0.4957 GB, free: 4.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006545/0.5104, allocations: 394.5 kB / 0.4961 GB, free: 4.598 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000678/0.5111, allocations: 419.9 kB / 0.4965 GB, free: 4.176 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.5111, allocations: 4 kB / 0.4965 GB, free: 4.172 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.782e-05/0.5111, allocations: 0 / 0.4965 GB, free: 4.172 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.5112, allocations: 23.94 kB / 0.4965 GB, free: 4.148 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003018/0.5142, allocations: 2.025 MB / 0.4985 GB, free: 2.051 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006635/0.5149, allocations: 0.6254 MB / 0.4991 GB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000545/0.5154, allocations: 482 kB / 0.4996 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009062/0.5245, allocations: 7.733 MB / 0.5071 GB, free: 7.957 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000403/0.525, allocations: 254.6 kB / 0.5074 GB, free: 7.699 MB / 394.7 MB Notification: Performance of pre-optimization done (n=55): time 2.445e-06/0.525, allocations: 0 / 0.5074 GB, free: 7.699 MB / 394.7 MB Notification: Performance of matching and sorting (n=59): time 0.004341/0.5293, allocations: 2.237 MB / 0.5096 GB, free: 5.398 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.5294, allocations: 67.83 kB / 0.5096 GB, free: 5.32 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/0.5306, allocations: 0.9902 MB / 0.5106 GB, free: 4.336 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.5307, allocations: 25.7 kB / 0.5106 GB, free: 4.305 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005601/0.5312, allocations: 0.715 MB / 0.5113 GB, free: 3.582 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.5314, allocations: 193.2 kB / 0.5115 GB, free: 3.391 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.5314, allocations: 0 / 0.5115 GB, free: 3.391 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.5315, allocations: 326 kB / 0.5118 GB, free: 3.066 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.5318, allocations: 157.6 kB / 0.512 GB, free: 2.914 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000335/0.5321, allocations: 315 kB / 0.5123 GB, free: 2.543 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007824/0.5329, allocations: 374.6 kB / 0.5126 GB, free: 2.176 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.5329, allocations: 7.875 kB / 0.5126 GB, free: 2.168 MB / 394.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001732/0.5347, allocations: 0.9495 MB / 0.5136 GB, free: 1.207 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.5347, allocations: 8 kB / 0.5136 GB, free: 1.199 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.155e-05/0.5348, allocations: 52 kB / 0.5136 GB, free: 1.148 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003906/0.5352, allocations: 152.8 kB / 0.5138 GB, free: 1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/0.5356, allocations: 111.8 kB / 0.5139 GB, free: 0.8906 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002525/0.5382, allocations: 2.241 MB / 0.5161 GB, free: 14.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005682/0.5388, allocations: 19.98 kB / 0.5161 GB, free: 14.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-05/0.5388, allocations: 36.05 kB / 0.5161 GB, free: 14.48 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: T2.vcs:VARIABLE(unit = "V" ) type: Real T1.vcs:VARIABLE(unit = "V" ) 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 () * 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 {(6,50.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002017/0.5391, allocations: 120.8 kB / 0.5162 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001555/0.5406, allocations: 0.8404 MB / 0.5171 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001831/0.5408, allocations: 177.9 kB / 0.5172 GB, free: 13.33 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002172/0.543, allocations: 0.9724 MB / 0.5182 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.543, allocations: 8 kB / 0.5182 GB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.543, allocations: 4 kB / 0.5182 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.543, allocations: 3.984 kB / 0.5182 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.5442, allocations: 0.7888 MB / 0.519 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.065e-05/0.5443, allocations: 51.98 kB / 0.519 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/0.5447, allocations: 71.89 kB / 0.5191 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003477/0.545, allocations: 150.7 kB / 0.5192 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.5451, allocations: 11.98 kB / 0.5192 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002519/0.5476, allocations: 2.212 MB / 0.5214 GB, free: 8.895 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/0.5476, allocations: 7.938 kB / 0.5214 GB, free: 8.887 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001995/0.5496, allocations: 1.107 MB / 0.5225 GB, free: 7.758 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003792/0.55, allocations: 254.9 kB / 0.5227 GB, free: 7.488 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.5502, allocations: 3.938 kB / 0.5227 GB, free: 7.484 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003654/0.5505, allocations: 19.94 kB / 0.5227 GB, free: 7.465 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.5507, allocations: 44.38 kB / 0.5228 GB, free: 7.418 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.721e-05/0.5507, allocations: 23.98 kB / 0.5228 GB, free: 7.395 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001133/0.5518, allocations: 0.7448 MB / 0.5235 GB, free: 6.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5519, allocations: 4 kB / 0.5235 GB, free: 6.656 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001131/0.553, allocations: 403.5 kB / 0.5239 GB, free: 6.262 MB / 410.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.002897/0.5559, allocations: 2.132 MB / 0.526 GB, free: 4.086 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.5572, allocations: 0.7675 MB / 0.5268 GB, free: 3.301 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5572, allocations: 0 / 0.5268 GB, free: 3.301 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008055/0.5581, allocations: 0.5414 MB / 0.5273 GB, free: 2.738 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006125/0.5587, allocations: 150.3 kB / 0.5274 GB, free: 2.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003882/0.5626, allocations: 2.072 MB / 0.5295 GB, free: 484 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1885/0.7512, allocations: 1.197 MB / 0.5306 GB, free: 109 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007298/0.7519, allocations: 155.6 kB / 0.5308 GB, free: 109 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007391/0.7527, allocations: 0.5539 MB / 0.5313 GB, free: 109 MB / 410.7 MB Notification: Performance of SimCode: time 1.453e-06/0.7527, allocations: 1.031 kB / 0.5313 GB, free: 109 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05689/0.8096, allocations: 24.23 MB / 0.555 GB, free: 107.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.8098, allocations: 134.6 kB / 0.5551 GB, free: 107.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.835/3.645, allocations: 0 / 0.5551 GB, free: 107.7 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat