Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.0015/0.0015, allocations: 181 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.124/2.124, 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.001132/0.001131, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.355e-05/3.373e-05, allocations: 7.938 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 47.56 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4162/0.5204, allocations: 77.99 MB / 447.2 MB, free: 15.22 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.5207, allocations: 71.28 kB / 447.2 MB, free: 15.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02404/0.5447, allocations: 5.413 MB / 452.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.5448, allocations: 8 kB / 452.7 MB, free: 10.58 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.396e-05/0.5448, allocations: 7.984 kB / 452.7 MB, free: 10.57 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001326/0.5462, allocations: 0.5405 MB / 453.2 MB, free: 10 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.5462, allocations: 8.031 kB / 453.2 MB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.5464, allocations: 69.47 kB / 453.3 MB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.5465, allocations: 31.62 kB / 453.3 MB, free: 9.906 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.5469, allocations: 257.7 kB / 453.6 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.547, allocations: 75.69 kB / 453.6 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.783e-05/0.5471, allocations: 31.62 kB / 453.7 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007043/0.5478, allocations: 291.8 kB / 454 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.5479, allocations: 4 kB / 454 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.423e-05/0.5479, allocations: 15.52 kB / 454 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/0.5479, allocations: 8 kB / 454 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000526/0.5485, allocations: 183.7 kB / 454.2 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002623/0.5511, allocations: 1.132 MB / 455.3 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004351/0.5516, allocations: 160.7 kB / 455.4 MB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002331/0.5519, allocations: 74.61 kB / 455.5 MB, free: 7.965 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.5519, allocations: 2.812 kB / 455.5 MB, free: 7.965 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003731/0.5523, allocations: 162.9 kB / 455.7 MB, free: 7.809 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.915e-06/0.5523, allocations: 0 / 455.7 MB, free: 7.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008703/0.5532, allocations: 219.6 kB / 455.9 MB, free: 7.629 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.806e-05/0.5533, allocations: 114.8 kB / 456 MB, free: 7.492 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003394/0.5537, allocations: 200.6 kB / 456.2 MB, free: 7.324 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.619e-05/0.5537, allocations: 29.58 kB / 456.2 MB, free: 7.293 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.5539, allocations: 229.5 kB / 456.5 MB, free: 7.086 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.796e-05/0.554, allocations: 68.39 kB / 456.5 MB, free: 7.027 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.92e-05/0.554, allocations: 7.125 kB / 456.5 MB, free: 7.027 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.5542, allocations: 322.7 kB / 456.8 MB, free: 6.707 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.5544, allocations: 59.44 kB / 456.9 MB, free: 6.668 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.5546, allocations: 129.3 kB / 457 MB, free: 6.547 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.5549, allocations: 70.12 kB / 457.1 MB, free: 6.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.5549, allocations: 4.031 kB / 457.1 MB, free: 6.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006348/0.5555, allocations: 244 kB / 457.3 MB, free: 6.305 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.5556, allocations: 7.953 kB / 457.4 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.5556, allocations: 4 kB / 457.4 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003862/0.556, allocations: 57.67 kB / 457.4 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003837/0.5564, allocations: 47.91 kB / 457.5 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/0.5583, allocations: 1.404 MB / 458.9 MB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000448/0.5588, allocations: 39.48 kB / 458.9 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/0.5588, allocations: 11.72 kB / 458.9 MB, free: 4.68 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$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 (32): * Single equations (assignments): 31 * 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.000149/0.559, allocations: 124.2 kB / 459 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.024e-05/0.5591, allocations: 23.72 kB / 459.1 MB, free: 4.535 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.29e-05/0.5591, allocations: 24.95 kB / 459.1 MB, free: 4.523 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.5592, allocations: 7.938 kB / 459.1 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.5592, allocations: 0 / 459.1 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.5592, allocations: 0 / 459.1 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004952/0.5597, allocations: 324 kB / 459.4 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.523e-06/0.5597, allocations: 3.984 kB / 459.4 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/0.56, allocations: 43.42 kB / 459.5 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003024/0.5604, allocations: 44.14 kB / 459.5 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.84e-05/0.5604, allocations: 7.609 kB / 459.5 MB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/0.5621, allocations: 1.325 MB / 460.8 MB, free: 2.715 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5621, allocations: 0 / 460.8 MB, free: 2.715 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.5632, allocations: 327.2 kB / 461.1 MB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.5634, allocations: 107.9 kB / 461.3 MB, free: 2.332 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.335e-05/0.5634, allocations: 0 / 461.3 MB, free: 2.332 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.5637, allocations: 27.3 kB / 461.3 MB, free: 2.309 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.5639, allocations: 35.31 kB / 461.3 MB, free: 2.277 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/0.5639, allocations: 11.36 kB / 461.3 MB, free: 2.27 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002178/0.5642, allocations: 158.4 kB / 461.5 MB, free: 2.137 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5642, allocations: 0 / 461.5 MB, free: 2.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005177/0.5647, allocations: 76.75 kB / 461.6 MB, free: 2.066 MB / 330.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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001502/0.5662, allocations: 0.8744 MB / 462.4 MB, free: 1.188 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007823/0.567, allocations: 278.8 kB / 462.7 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.567, allocations: 0 / 462.7 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004222/0.5675, allocations: 194.5 kB / 462.9 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004192/0.5679, allocations: 37.22 kB / 462.9 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.5706, allocations: 0.6088 MB / 463.5 MB, free: 8 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.5711, allocations: 0.7674 MB / 464.3 MB, free: 15.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.5713, allocations: 79.41 kB / 464.4 MB, free: 15.13 MB / 346.7 MB Notification: Performance of SimCode: time 1.143e-06/0.5714, allocations: 0 / 464.4 MB, free: 15.13 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.654/3.226, allocations: 5.25 MB / 469.6 MB, free: 9.883 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat