Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_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.000956/0.000956, allocations: 175.1 kB / 14.1 MB, free: 1.207 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.46/1.46, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008364/0.0008367, allocations: 90.69 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.067e-05/3.079e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3318/0.4388, allocations: 77.98 MB / 448.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/0.439, allocations: 67.03 kB / 448.2 MB, free: 15.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01406/0.4531, allocations: 5.432 MB / 453.6 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4531, allocations: 0 / 453.6 MB, free: 10.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.009e-05/0.4532, allocations: 8 kB / 453.6 MB, free: 10.61 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.0008939/0.4541, allocations: 0.5429 MB / 454.1 MB, free: 10.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.4541, allocations: 8.031 kB / 454.2 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.435e-05/0.4542, allocations: 68.22 kB / 454.2 MB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.765e-05/0.4543, allocations: 31.62 kB / 454.3 MB, free: 9.945 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.4546, allocations: 255.8 kB / 454.5 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.623e-05/0.4547, allocations: 74.31 kB / 454.6 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.709e-05/0.4548, allocations: 30.12 kB / 454.6 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.4552, allocations: 287.2 kB / 454.9 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.4553, allocations: 224 / 454.9 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.4553, allocations: 17.42 kB / 454.9 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.4553, allocations: 15.88 kB / 454.9 MB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000312/0.4556, allocations: 173.3 kB / 455.1 MB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.4574, allocations: 1.14 MB / 456.2 MB, free: 8.176 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002978/0.4577, allocations: 156 kB / 456.4 MB, free: 8.062 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.4578, allocations: 77.11 kB / 456.5 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.4579, allocations: 4 kB / 456.5 MB, free: 8.008 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002813/0.4581, allocations: 165.8 kB / 456.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.402e-06/0.4582, allocations: 0 / 456.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005557/0.4587, allocations: 218.4 kB / 456.8 MB, free: 7.668 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.965e-05/0.4588, allocations: 118.4 kB / 456.9 MB, free: 7.531 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.459, allocations: 194.6 kB / 457.1 MB, free: 7.367 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.459, allocations: 32.7 kB / 457.2 MB, free: 7.332 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.436e-05/0.4591, allocations: 174.2 kB / 457.3 MB, free: 7.184 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.543e-05/0.4592, allocations: 66.72 kB / 457.4 MB, free: 7.129 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.02e-05/0.4592, allocations: 2.75 kB / 457.4 MB, free: 7.129 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.4593, allocations: 336.6 kB / 457.7 MB, free: 6.801 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.4594, allocations: 66.31 kB / 457.8 MB, free: 6.758 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.4596, allocations: 114.3 kB / 457.9 MB, free: 6.648 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.4597, allocations: 77.03 kB / 458 MB, free: 6.598 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.4597, allocations: 4 kB / 458 MB, free: 6.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003754/0.4601, allocations: 251.5 kB / 458.2 MB, free: 6.352 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.4601, allocations: 7.953 kB / 458.2 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.4601, allocations: 7.984 kB / 458.3 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000284/0.4604, allocations: 56.92 kB / 458.3 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002178/0.4607, allocations: 51.91 kB / 458.4 MB, free: 6.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.462, allocations: 1.397 MB / 459.8 MB, free: 4.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.4622, allocations: 51.8 kB / 459.8 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.4622, allocations: 7.984 kB / 459.8 MB, free: 4.637 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.0001193/0.4623, allocations: 124.9 kB / 459.9 MB, free: 4.508 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.922e-05/0.4624, allocations: 23.72 kB / 460 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.765e-05/0.4625, allocations: 33.89 kB / 460 MB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.4625, allocations: 4 kB / 460 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.624e-06/0.4625, allocations: 0 / 460 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.4625, allocations: 0 / 460 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003076/0.4628, allocations: 325.4 kB / 460.3 MB, free: 4.082 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.4628, allocations: 0 / 460.3 MB, free: 4.082 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.463, allocations: 31.98 kB / 460.3 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001676/0.4631, allocations: 56.8 kB / 460.4 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.4632, allocations: 0 / 460.4 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009565/0.4641, allocations: 1.331 MB / 461.7 MB, free: 2.527 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4642, allocations: 0 / 461.7 MB, free: 2.527 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005883/0.4647, allocations: 325.5 kB / 462 MB, free: 2.188 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.4649, allocations: 112.8 kB / 462.2 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.4649, allocations: 128 / 462.2 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.4651, allocations: 27.98 kB / 462.2 MB, free: 2.031 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.316e-05/0.4652, allocations: 31.94 kB / 462.2 MB, free: 2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.4652, allocations: 4 kB / 462.2 MB, free: 1.996 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001377/0.4653, allocations: 161.4 kB / 462.4 MB, free: 1.836 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4653, allocations: 4 kB / 462.4 MB, free: 1.832 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003188/0.4657, allocations: 71.84 kB / 462.5 MB, free: 1.762 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.0008679/0.4665, allocations: 0.8758 MB / 463.3 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004551/0.467, allocations: 282.5 kB / 463.6 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.467, allocations: 0 / 463.6 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.4673, allocations: 186.6 kB / 463.8 MB, free: 380 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.4675, allocations: 41.2 kB / 463.8 MB, free: 340 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/0.469, allocations: 0.58 MB / 464.4 MB, free: 15.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.4693, allocations: 0.7635 MB / 465.2 MB, free: 14.92 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.4694, allocations: 30.05 kB / 465.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.4696, allocations: 83.34 kB / 465.3 MB, free: 14.81 MB / 346.7 MB Notification: Performance of SimCode: time 3.6e-07/0.4696, allocations: 0 / 465.3 MB, free: 14.81 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.488, allocations: 5.014 MB / 470.3 MB, free: 9.801 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.4882, allocations: 174.7 kB / 470.5 MB, free: 9.582 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/2.219, allocations: 0 / 470.5 MB, free: 9.582 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat