Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 221.5 MB / 230.3 MB, free: 7.5 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 95.53 kB / 281.2 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.349e-05/2.35e-05, allocations: 4 kB / 337.1 MB, free: 9.902 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1268, allocations: 50.43 MB / 387.6 MB, free: 7.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4197/0.5465, allocations: 78.69 MB / 466.3 MB, free: 15.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.5468, allocations: 71.95 kB / 466.3 MB, free: 15.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01465/0.5614, allocations: 5.545 MB / 471.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.5615, allocations: 0 / 471.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.5615, allocations: 15.98 kB / 471.9 MB, free: 10.3 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.0007786/0.5623, allocations: 0.5415 MB / 472.4 MB, free: 9.719 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.5623, allocations: 8.031 kB / 472.4 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.065e-05/0.5624, allocations: 35.62 kB / 472.5 MB, free: 9.676 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003259/0.5627, allocations: 258.4 kB / 472.7 MB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.474e-05/0.5628, allocations: 72.17 kB / 472.8 MB, free: 9.297 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.01e-05/0.5629, allocations: 20 kB / 472.8 MB, free: 9.277 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003076/0.5632, allocations: 165.5 kB / 473 MB, free: 9.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003836/0.5636, allocations: 245.8 kB / 473.2 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.5636, allocations: 7.938 kB / 473.2 MB, free: 8.855 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.5637, allocations: 4 kB / 473.2 MB, free: 8.852 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.5637, allocations: 8 kB / 473.2 MB, free: 8.844 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.5652, allocations: 1.064 MB / 474.3 MB, free: 7.711 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002388/0.5654, allocations: 150.5 kB / 474.4 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.5656, allocations: 68.86 kB / 474.5 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.5656, allocations: 0 / 474.5 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002403/0.5658, allocations: 147.4 kB / 474.7 MB, free: 7.316 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.5658, allocations: 3.938 kB / 474.7 MB, free: 7.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.000617/0.5665, allocations: 200.6 kB / 474.9 MB, free: 7.109 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.5665, allocations: 106.8 kB / 475 MB, free: 6.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.5667, allocations: 174.4 kB / 475.1 MB, free: 6.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.5668, allocations: 29.7 kB / 475.2 MB, free: 6.766 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.5669, allocations: 179.9 kB / 475.3 MB, free: 6.582 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.572e-05/0.5669, allocations: 59.11 kB / 475.4 MB, free: 6.523 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.382e-05/0.567, allocations: 0 / 475.4 MB, free: 6.523 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.5671, allocations: 335.1 kB / 475.7 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.5672, allocations: 56.56 kB / 475.8 MB, free: 6.129 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.5674, allocations: 116.8 kB / 475.9 MB, free: 5.992 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.5675, allocations: 65.08 kB / 476 MB, free: 5.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.5675, allocations: 0 / 476 MB, free: 5.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004103/0.568, allocations: 236.3 kB / 476.2 MB, free: 5.691 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.568, allocations: 4 kB / 476.2 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.568, allocations: 0 / 476.2 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002739/0.5683, allocations: 48.83 kB / 476.2 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002456/0.5685, allocations: 59.97 kB / 476.3 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.5699, allocations: 1.368 MB / 477.7 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002017/0.5701, allocations: 31.81 kB / 477.7 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.5701, allocations: 12 kB / 477.7 MB, free: 4.055 MB / 346.7 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: 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.0001229/0.5702, allocations: 115.5 kB / 477.8 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004077/0.5707, allocations: 213 kB / 478 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.5707, allocations: 19.81 kB / 478 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.5708, allocations: 25.92 kB / 478.1 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.5708, allocations: 3.984 kB / 478.1 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.5708, allocations: 3.938 kB / 478.1 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.5708, allocations: 0 / 478.1 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000246/0.571, allocations: 269.9 kB / 478.3 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.571, allocations: 0 / 478.3 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.5712, allocations: 31.98 kB / 478.4 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001628/0.5714, allocations: 52.81 kB / 478.4 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.5714, allocations: 8 kB / 478.4 MB, free: 3.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009185/0.5723, allocations: 1.283 MB / 479.7 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.5724, allocations: 3.953 kB / 479.7 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005295/0.5729, allocations: 293.7 kB / 480 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.32e-05/0.573, allocations: 108.9 kB / 480.1 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.573, allocations: 4.125 kB / 480.1 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.5732, allocations: 23.98 kB / 480.1 MB, free: 1.406 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.163e-05/0.5733, allocations: 35.89 kB / 480.2 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.5733, allocations: 4 kB / 480.2 MB, free: 1.367 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.328e-05/0.5734, allocations: 136.4 kB / 480.3 MB, free: 1.234 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5734, allocations: 3.938 kB / 480.3 MB, free: 1.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003357/0.5738, allocations: 79.75 kB / 480.4 MB, free: 1.152 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) * 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.0008459/0.5746, allocations: 0.8437 MB / 481.2 MB, free: 288 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004815/0.5751, allocations: 269.8 kB / 481.5 MB, free: 8 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5751, allocations: 0 / 481.5 MB, free: 8 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002537/0.5754, allocations: 177.8 kB / 481.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.5756, allocations: 25.19 kB / 481.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.5771, allocations: 0.5423 MB / 482.2 MB, free: 15.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.5774, allocations: 0.771 MB / 483 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.626e-05/0.5775, allocations: 22.08 kB / 483 MB, free: 14.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.5777, allocations: 79.41 kB / 483.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5777, allocations: 0 / 483.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02123/0.5989, allocations: 4.101 MB / 487.2 MB, free: 10.26 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001651/0.5991, allocations: 133.9 kB / 487.3 MB, free: 10.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.651/2.25, allocations: 0 / 487.3 MB, free: 10.07 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat