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.00178/0.00178, allocations: 172.7 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007728/0.0007726, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.084e-05/3.087e-05, allocations: 3.984 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09778/0.09782, allocations: 47.59 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3142/0.4121, allocations: 90.26 MB / 460.4 MB, free: 3.289 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.4124, allocations: 73.97 kB / 460.5 MB, free: 3.254 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1052/0.5176, allocations: 54.45 MB / 0.5028 GB, free: 13.89 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5177, allocations: 3.984 kB / 0.5028 GB, free: 13.88 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.21e-05/0.5177, allocations: 20 kB / 0.5029 GB, free: 13.86 MB / 394.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.002415/0.5201, allocations: 1.544 MB / 0.5044 GB, free: 12.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.5202, allocations: 8.031 kB / 0.5044 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.5203, allocations: 94.52 kB / 0.5045 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001997/0.5205, allocations: 197.7 kB / 0.5047 GB, free: 11.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001638/0.5221, allocations: 1.143 MB / 0.5058 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.04e-05/0.5222, allocations: 36.92 kB / 0.5058 GB, free: 10.74 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.163e-05/0.5223, allocations: 48 kB / 0.5058 GB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007967/0.5231, allocations: 480.3 kB / 0.5063 GB, free: 10.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.5232, allocations: 0 / 0.5063 GB, free: 10.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.685e-05/0.5232, allocations: 20 kB / 0.5063 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.188e-05/0.5232, allocations: 27.94 kB / 0.5064 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006061/0.5239, allocations: 416.2 kB / 0.5067 GB, free: 9.766 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002927/0.5268, allocations: 2.116 MB / 0.5088 GB, free: 7.566 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000678/0.5275, allocations: 0.6556 MB / 0.5095 GB, free: 6.859 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005607/0.5281, allocations: 0.4901 MB / 0.5099 GB, free: 6.359 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008491/0.5366, allocations: 7.74 MB / 0.5175 GB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004023/0.537, allocations: 266.6 kB / 0.5177 GB, free: 13.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=55): time 3.076e-06/0.537, allocations: 0 / 0.5177 GB, free: 13.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=59): time 0.002952/0.54, allocations: 1.671 MB / 0.5194 GB, free: 11.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.5401, allocations: 55.84 kB / 0.5194 GB, free: 11.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001388/0.5415, allocations: 1.076 MB / 0.5205 GB, free: 10.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.427e-05/0.5415, allocations: 33.69 kB / 0.5205 GB, free: 10.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005203/0.542, allocations: 0.7189 MB / 0.5212 GB, free: 9.504 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.5422, allocations: 197.2 kB / 0.5214 GB, free: 9.309 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.5422, allocations: 8 kB / 0.5214 GB, free: 9.301 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.5424, allocations: 334 kB / 0.5217 GB, free: 8.969 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002524/0.5426, allocations: 165.6 kB / 0.5219 GB, free: 8.809 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003514/0.543, allocations: 335.7 kB / 0.5222 GB, free: 8.414 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003242/0.5433, allocations: 223.9 kB / 0.5224 GB, free: 8.195 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5433, allocations: 0 / 0.5224 GB, free: 8.195 MB / 410.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001208/0.5445, allocations: 0.844 MB / 0.5232 GB, free: 7.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.5446, allocations: 8 kB / 0.5233 GB, free: 7.332 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.687e-05/0.5446, allocations: 67.88 kB / 0.5233 GB, free: 7.266 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003819/0.545, allocations: 153.4 kB / 0.5235 GB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004435/0.5455, allocations: 111.9 kB / 0.5236 GB, free: 7.004 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002406/0.5479, allocations: 2.295 MB / 0.5258 GB, free: 4.574 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005078/0.5484, allocations: 35.97 kB / 0.5258 GB, free: 4.539 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.752e-05/0.5485, allocations: 35.94 kB / 0.5259 GB, free: 4.504 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 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.5487, allocations: 149.8 kB / 0.526 GB, free: 4.352 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.5488, allocations: 181.8 kB / 0.5262 GB, free: 4.172 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/0.5505, allocations: 0.8435 MB / 0.527 GB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.5505, allocations: 4 kB / 0.527 GB, free: 3.312 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.5505, allocations: 11.95 kB / 0.527 GB, free: 3.301 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.5505, allocations: 3.984 kB / 0.527 GB, free: 3.297 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009644/0.5515, allocations: 0.8515 MB / 0.5279 GB, free: 2.395 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-05/0.5516, allocations: 55.98 kB / 0.5279 GB, free: 2.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/0.5519, allocations: 67.89 kB / 0.528 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003344/0.5522, allocations: 151.2 kB / 0.5281 GB, free: 2.125 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.242e-05/0.5523, allocations: 27.94 kB / 0.5282 GB, free: 2.098 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2103/0.7626, allocations: 2.252 MB / 0.5304 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.7627, allocations: 2.062 kB / 0.5304 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002106/0.7648, allocations: 0.9754 MB / 0.5313 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004679/0.7653, allocations: 255.9 kB / 0.5316 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.7654, allocations: 15.05 kB / 0.5316 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004612/0.7659, allocations: 25.06 kB / 0.5316 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.7661, allocations: 47.3 kB / 0.5316 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.357e-05/0.7661, allocations: 21.83 kB / 0.5317 GB, free: 106.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001394/0.7675, allocations: 0.8293 MB / 0.5325 GB, free: 106.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.763e-06/0.7675, allocations: 3.094 kB / 0.5325 GB, free: 106.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001334/0.7689, allocations: 427.2 kB / 0.5329 GB, free: 106.4 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.002843/0.7717, allocations: 1.965 MB / 0.5348 GB, free: 105.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.7732, allocations: 0.7816 MB / 0.5356 GB, free: 105.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.7733, allocations: 2.219 kB / 0.5356 GB, free: 105.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.7743, allocations: 0.5641 MB / 0.5361 GB, free: 105.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006199/0.7749, allocations: 156 kB / 0.5363 GB, free: 105.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003713/0.7787, allocations: 2.108 MB / 0.5383 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009133/0.7796, allocations: 1.2 MB / 0.5395 GB, free: 103.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006197/0.7802, allocations: 152.5 kB / 0.5396 GB, free: 103.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000608/0.7808, allocations: 0.5562 MB / 0.5402 GB, free: 103.9 MB / 410.7 MB Notification: Performance of SimCode: time 7.21e-07/0.7809, allocations: 0 / 0.5402 GB, free: 103.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05475/0.8356, allocations: 27.81 MB / 0.5673 GB, free: 101.6 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001267/0.8358, allocations: 179.4 kB / 0.5675 GB, free: 101.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.802/3.637, allocations: 0 / 0.5675 GB, free: 101.4 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