Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.002202/0.002202, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.053/2.053, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001107/0.001107, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.385e-05/3.396e-05, allocations: 3.984 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09638/0.09646, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.439/0.5355, allocations: 78.65 MB / 447.8 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.5359, allocations: 70.3 kB / 447.9 MB, free: 14.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02827/0.5642, allocations: 6.12 MB / 454 MB, free: 8.926 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5642, allocations: 0 / 454 MB, free: 8.926 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.639e-05/0.5643, allocations: 8 kB / 454 MB, free: 8.918 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001415/0.5657, allocations: 0.5727 MB / 454.6 MB, free: 8.324 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.688e-05/0.5658, allocations: 12.03 kB / 454.6 MB, free: 8.312 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.5659, allocations: 66.59 kB / 454.7 MB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.5661, allocations: 43.53 kB / 454.7 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004776/0.5665, allocations: 268.6 kB / 455 MB, free: 7.934 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.5667, allocations: 76.62 kB / 455.1 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.243e-05/0.5668, allocations: 31 kB / 455.1 MB, free: 7.832 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008069/0.5676, allocations: 325.8 kB / 455.4 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.5676, allocations: 4.203 kB / 455.4 MB, free: 7.586 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.212e-05/0.5677, allocations: 13.12 kB / 455.4 MB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.5677, allocations: 15.94 kB / 455.4 MB, free: 7.566 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006046/0.5684, allocations: 203.6 kB / 455.6 MB, free: 7.434 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003166/0.5715, allocations: 1.392 MB / 457 MB, free: 6.145 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004905/0.5721, allocations: 157.1 kB / 457.2 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.5723, allocations: 79.11 kB / 457.3 MB, free: 5.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.5724, allocations: 7.938 kB / 457.3 MB, free: 5.973 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003983/0.5728, allocations: 150.5 kB / 457.4 MB, free: 5.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.995e-06/0.5728, allocations: 0 / 457.4 MB, free: 5.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009743/0.5738, allocations: 221 kB / 457.6 MB, free: 5.648 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.464e-05/0.5739, allocations: 114.4 kB / 457.7 MB, free: 5.516 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.5744, allocations: 227.9 kB / 458 MB, free: 5.324 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.912e-05/0.5744, allocations: 29.39 kB / 458 MB, free: 5.293 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002058/0.5747, allocations: 263.6 kB / 458.3 MB, free: 5.062 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.643e-05/0.5748, allocations: 69.94 kB / 458.3 MB, free: 5.004 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.031e-05/0.5748, allocations: 3.625 kB / 458.3 MB, free: 5.004 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.575, allocations: 330.5 kB / 458.6 MB, free: 4.676 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.5752, allocations: 65.38 kB / 458.7 MB, free: 4.637 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003099/0.5755, allocations: 151.7 kB / 458.9 MB, free: 4.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003157/0.5759, allocations: 87.52 kB / 458.9 MB, free: 4.422 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.5759, allocations: 4 kB / 458.9 MB, free: 4.418 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001021/0.5769, allocations: 297 kB / 459.2 MB, free: 4.184 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.577, allocations: 4 kB / 459.2 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.577, allocations: 4 kB / 459.2 MB, free: 4.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003763/0.5774, allocations: 59.66 kB / 459.3 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000488/0.5779, allocations: 67.78 kB / 459.4 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002052/0.58, allocations: 1.416 MB / 460.8 MB, free: 2.566 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005308/0.5806, allocations: 46.52 kB / 460.8 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.5806, allocations: 14.56 kB / 460.8 MB, free: 2.512 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001699/0.5808, allocations: 120.7 kB / 461 MB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.938e-05/0.5809, allocations: 23.72 kB / 461 MB, free: 2.371 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.356e-05/0.581, allocations: 32.2 kB / 461 MB, free: 2.348 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.581, allocations: 7.953 kB / 461 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.581, allocations: 0 / 461 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.581, allocations: 4 kB / 461 MB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005592/0.5816, allocations: 340.5 kB / 461.4 MB, free: 2.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5816, allocations: 0 / 461.4 MB, free: 2.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000409/0.582, allocations: 35.98 kB / 461.4 MB, free: 1.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003334/0.5824, allocations: 58.44 kB / 461.5 MB, free: 1.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.783e-05/0.5825, allocations: 11.42 kB / 461.5 MB, free: 1.922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/0.5842, allocations: 1.317 MB / 462.8 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.5843, allocations: 0 / 462.8 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.5854, allocations: 330.4 kB / 463.1 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002193/0.5856, allocations: 119.8 kB / 463.2 MB, free: 140 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.584e-05/0.5857, allocations: 3.062 kB / 463.2 MB, free: 140 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003287/0.5861, allocations: 27.19 kB / 463.3 MB, free: 116 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.5862, allocations: 34.25 kB / 463.3 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.782e-05/0.5863, allocations: 8 kB / 463.3 MB, free: 80 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003109/0.5866, allocations: 187.1 kB / 463.5 MB, free: 15.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.2e-07/0.5866, allocations: 0 / 463.5 MB, free: 15.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005916/0.5872, allocations: 90.45 kB / 463.6 MB, free: 15.85 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001597/0.5888, allocations: 0.8738 MB / 464.4 MB, free: 14.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008652/0.5897, allocations: 298.4 kB / 464.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5898, allocations: 0 / 464.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004259/0.5902, allocations: 191.2 kB / 464.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.5906, allocations: 41.3 kB / 465 MB, free: 14.44 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.5932, allocations: 0.5861 MB / 465.5 MB, free: 13.81 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004693/0.5937, allocations: 0.7794 MB / 466.3 MB, free: 13 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002317/0.5939, allocations: 95.41 kB / 466.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5939, allocations: 0 / 466.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.707/3.301, allocations: 5.806 MB / 472.2 MB, free: 7.102 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat