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.001512/0.001512, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.993/1.993, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 88.31 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.738e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3681, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.152/0.5202, allocations: 78 MB / 440.4 MB, free: 8.219 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/0.5205, allocations: 72.97 kB / 440.5 MB, free: 8.148 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02733/0.5479, allocations: 6.046 MB / 446.5 MB, free: 2.129 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.5479, allocations: 0 / 446.5 MB, free: 2.129 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.805e-05/0.548, allocations: 9.031 kB / 446.6 MB, free: 2.121 MB / 331.1 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.001481/0.5495, allocations: 0.577 MB / 447.1 MB, free: 1.504 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.5495, allocations: 8.031 kB / 447.1 MB, free: 1.496 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.5497, allocations: 39.72 kB / 447.2 MB, free: 1.457 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005491/0.5503, allocations: 267.8 kB / 447.4 MB, free: 1.152 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001253/0.5504, allocations: 72.12 kB / 447.5 MB, free: 1.07 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.283e-05/0.5505, allocations: 20 kB / 447.5 MB, free: 1.051 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006437/0.5512, allocations: 182.1 kB / 447.7 MB, free: 0.8711 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007285/0.5519, allocations: 275.4 kB / 448 MB, free: 0.5859 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.552, allocations: 0 / 448 MB, free: 0.5859 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.657e-05/0.552, allocations: 7.938 kB / 448 MB, free: 0.5781 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.5521, allocations: 9.312 kB / 448 MB, free: 0.5703 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003141/0.5552, allocations: 1.325 MB / 449.3 MB, free: 15.16 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004189/0.5557, allocations: 142.9 kB / 449.5 MB, free: 15.01 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.5559, allocations: 78.38 kB / 449.5 MB, free: 14.93 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.556, allocations: 7.984 kB / 449.5 MB, free: 14.92 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003511/0.5563, allocations: 143.4 kB / 449.7 MB, free: 14.76 MB / 347.1 MB Notification: Performance of pre-optimization done (n=21): time 3.416e-06/0.5563, allocations: 3.938 kB / 449.7 MB, free: 14.75 MB / 347.1 MB Notification: Performance of matching and sorting (n=21): time 0.0008617/0.5572, allocations: 208.6 kB / 449.9 MB, free: 14.54 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.5573, allocations: 106.8 kB / 450 MB, free: 14.41 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.5576, allocations: 196.5 kB / 450.2 MB, free: 14.21 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.5577, allocations: 29.7 kB / 450.2 MB, free: 14.18 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.5579, allocations: 258.5 kB / 450.5 MB, free: 13.93 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.561e-05/0.558, allocations: 77.06 kB / 450.5 MB, free: 13.85 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.059e-05/0.558, allocations: 0 / 450.5 MB, free: 13.85 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.5583, allocations: 318.8 kB / 450.8 MB, free: 13.53 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002766/0.5586, allocations: 60 kB / 450.9 MB, free: 13.47 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000416/0.559, allocations: 150.5 kB / 451.1 MB, free: 13.29 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.5593, allocations: 74.36 kB / 451.1 MB, free: 13.21 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.5594, allocations: 3.953 kB / 451.1 MB, free: 13.21 MB / 347.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001408/0.5608, allocations: 272.8 kB / 451.4 MB, free: 12.94 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.5609, allocations: 4 kB / 451.4 MB, free: 12.93 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.5609, allocations: 4 kB / 451.4 MB, free: 12.93 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004663/0.5614, allocations: 60.97 kB / 451.5 MB, free: 12.87 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006126/0.562, allocations: 63.91 kB / 451.5 MB, free: 12.8 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002609/0.5647, allocations: 1.365 MB / 452.9 MB, free: 11.32 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006626/0.5654, allocations: 35.67 kB / 452.9 MB, free: 11.29 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.041e-05/0.5655, allocations: 19.89 kB / 452.9 MB, free: 11.27 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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.0002528/0.5657, allocations: 121.4 kB / 453.1 MB, free: 11.15 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009916/0.5668, allocations: 212.3 kB / 453.3 MB, free: 10.93 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.341e-05/0.5669, allocations: 23.72 kB / 453.3 MB, free: 10.91 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.899e-05/0.567, allocations: 29.95 kB / 453.3 MB, free: 10.89 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.567, allocations: 7.953 kB / 453.3 MB, free: 10.88 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.567, allocations: 0 / 453.3 MB, free: 10.88 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.567, allocations: 2.344 kB / 453.3 MB, free: 10.88 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005873/0.5676, allocations: 286 kB / 453.6 MB, free: 10.56 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.5677, allocations: 0 / 453.6 MB, free: 10.56 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004434/0.5681, allocations: 31.98 kB / 453.6 MB, free: 10.53 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003721/0.5685, allocations: 60.8 kB / 453.7 MB, free: 10.47 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/0.5686, allocations: 4 kB / 453.7 MB, free: 10.46 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001946/0.5705, allocations: 1.276 MB / 455 MB, free: 9.07 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/0.5706, allocations: 0 / 455 MB, free: 9.07 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.5719, allocations: 313.6 kB / 455.3 MB, free: 8.742 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002214/0.5721, allocations: 120.7 kB / 455.4 MB, free: 8.605 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.855e-05/0.5722, allocations: 0 / 455.4 MB, free: 8.605 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003912/0.5726, allocations: 23.98 kB / 455.4 MB, free: 8.582 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.5728, allocations: 31.94 kB / 455.5 MB, free: 8.551 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/0.5728, allocations: 12.02 kB / 455.5 MB, free: 8.539 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002711/0.5731, allocations: 152.5 kB / 455.6 MB, free: 8.387 MB / 347.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5731, allocations: 0 / 455.6 MB, free: 8.387 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0008497/0.574, allocations: 79.75 kB / 455.7 MB, free: 8.309 MB / 347.1 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.001801/0.5758, allocations: 0.856 MB / 456.6 MB, free: 7.426 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0009474/0.5768, allocations: 270.3 kB / 456.8 MB, free: 7.152 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.5768, allocations: 4 kB / 456.8 MB, free: 7.148 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004968/0.5774, allocations: 174.3 kB / 457 MB, free: 6.969 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.5778, allocations: 37.33 kB / 457 MB, free: 6.938 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00315/0.581, allocations: 0.5602 MB / 457.6 MB, free: 6.332 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005689/0.5816, allocations: 0.775 MB / 458.4 MB, free: 5.531 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003102/0.582, allocations: 95.41 kB / 458.5 MB, free: 5.438 MB / 347.1 MB Notification: Performance of SimCode: time 1.413e-06/0.582, allocations: 0 / 458.5 MB, free: 5.438 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.689/3.271, allocations: 5.579 MB / 464 MB, free: 15.89 MB / 363.1 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