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.001165/0.001165, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.519/1.519, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0008384/0.0008384, allocations: 96.16 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002892/0.0002893, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2512, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09283/0.344, allocations: 78.07 MB / 454 MB, free: 2.586 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.3444, allocations: 71.95 kB / 454.1 MB, free: 2.516 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01445/0.3588, allocations: 5.425 MB / 459.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.816e-06/0.3589, allocations: 0 / 459.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.737e-05/0.3589, allocations: 8 kB / 459.5 MB, free: 13.06 MB / 346.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.0009001/0.3598, allocations: 0.5681 MB / 460.1 MB, free: 12.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.3599, allocations: 8.031 kB / 460.1 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.032e-05/0.36, allocations: 70.47 kB / 460.1 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.074e-05/0.3601, allocations: 35.62 kB / 460.2 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.3604, allocations: 242.6 kB / 460.4 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.794e-05/0.3605, allocations: 84.05 kB / 460.5 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.3605, allocations: 27.94 kB / 460.5 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004637/0.361, allocations: 285.8 kB / 460.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.361, allocations: 4 kB / 460.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.17e-05/0.3611, allocations: 11.98 kB / 460.8 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.3611, allocations: 12 kB / 460.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003108/0.3614, allocations: 190.1 kB / 461 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.3631, allocations: 1.147 MB / 462.2 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002936/0.3634, allocations: 154.5 kB / 462.3 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.3634, allocations: 4 kB / 462.3 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.3637, allocations: 156.1 kB / 462.5 MB, free: 9.855 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.923e-06/0.3637, allocations: 4 kB / 462.5 MB, free: 9.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009862/0.3647, allocations: 397.3 kB / 462.9 MB, free: 9.438 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.3648, allocations: 106.8 kB / 463 MB, free: 9.309 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.365, allocations: 208.1 kB / 463.2 MB, free: 9.102 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.783e-05/0.3651, allocations: 29.7 kB / 463.2 MB, free: 9.066 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3652, allocations: 176.2 kB / 463.4 MB, free: 8.891 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.598e-05/0.3652, allocations: 63.11 kB / 463.4 MB, free: 8.828 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.361e-05/0.3653, allocations: 8 kB / 463.4 MB, free: 8.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3654, allocations: 330.8 kB / 463.8 MB, free: 8.488 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.3655, allocations: 68.53 kB / 463.8 MB, free: 8.418 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.3657, allocations: 128.1 kB / 463.9 MB, free: 8.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.3659, allocations: 77.19 kB / 464 MB, free: 8.195 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3659, allocations: 0 / 464 MB, free: 8.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004299/0.3663, allocations: 260.1 kB / 464.3 MB, free: 7.934 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3664, allocations: 4 kB / 464.3 MB, free: 7.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3664, allocations: 0 / 464.3 MB, free: 7.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002843/0.3667, allocations: 60.92 kB / 464.3 MB, free: 7.867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/0.3669, allocations: 51.92 kB / 464.4 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/0.3683, allocations: 1.404 MB / 465.8 MB, free: 6.273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.3686, allocations: 39.98 kB / 465.8 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.3686, allocations: 8 kB / 465.8 MB, free: 6.227 MB / 346.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 () * Number of clocked 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.0002022/0.3688, allocations: 156.8 kB / 466 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.3689, allocations: 27.67 kB / 466 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.716e-05/0.3689, allocations: 22.19 kB / 466 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.3689, allocations: 7.984 kB / 466.1 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.369, allocations: 0 / 466.1 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.369, allocations: 0 / 466.1 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003766/0.3693, allocations: 321.3 kB / 466.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3694, allocations: 4 kB / 466.4 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.3695, allocations: 43.88 kB / 466.4 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001963/0.3697, allocations: 52.75 kB / 466.5 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.3698, allocations: 7.984 kB / 466.5 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.371, allocations: 1.328 MB / 467.8 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.371, allocations: 12.08 kB / 467.8 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006796/0.3717, allocations: 325.4 kB / 468.1 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.3718, allocations: 104.9 kB / 468.2 MB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.3719, allocations: 8 kB / 468.2 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.3721, allocations: 24.05 kB / 468.3 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.3722, allocations: 31.94 kB / 468.3 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.3722, allocations: 4 kB / 468.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001629/0.3724, allocations: 164.5 kB / 468.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3724, allocations: 0 / 468.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004197/0.3728, allocations: 83.75 kB / 468.5 MB, free: 3.289 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * 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.001072/0.3739, allocations: 0.8714 MB / 469.4 MB, free: 2.387 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006233/0.3745, allocations: 291 kB / 469.7 MB, free: 2.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3745, allocations: 0 / 469.7 MB, free: 2.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003031/0.3748, allocations: 190.6 kB / 469.9 MB, free: 1.891 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.3751, allocations: 36.36 kB / 469.9 MB, free: 1.855 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.3783, allocations: 2.379 MB / 472.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/0.3787, allocations: 0.7635 MB / 473.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000123/0.3788, allocations: 25.94 kB / 473.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.3789, allocations: 83.41 kB / 473.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of SimCode: time 1.533e-06/0.379, allocations: 0 / 473.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01911/0.3981, allocations: 5.034 MB / 478.2 MB, free: 9.504 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003067/0.3985, allocations: 209.2 kB / 478.4 MB, free: 9.262 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.768/2.166, allocations: 0 / 478.4 MB, free: 9.262 MB / 362.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