Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001186/0.001186, allocations: 94.36 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001034/0.001034, allocations: 204.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002921, allocations: 8 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1514, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003346/0.1548, allocations: 2.545 MB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.1563, allocations: 0.7795 MB / 361.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.1564, allocations: 7.938 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.085e-05/0.1565, allocations: 47.61 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002802/0.1568, allocations: 119.7 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004062/0.1572, allocations: 87.84 kB / 361.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003939/0.1576, allocations: 283.1 kB / 362.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.1579, allocations: 111 kB / 362.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002653/0.1582, allocations: 135.5 kB / 362.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.1584, allocations: 143.4 kB / 362.4 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.759e-05/0.1585, allocations: 20 kB / 362.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.913e-05/0.1585, allocations: 23.94 kB / 362.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.642e-05/0.1586, allocations: 63.8 kB / 362.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.1587, allocations: 97.52 kB / 362.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003528/0.1591, allocations: 303.4 kB / 362.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1591, allocations: 0 / 362.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1591, allocations: 0 / 362.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.1591, allocations: 0 / 362.9 MB, free: 8.996 MB / 302.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.001081/0.1602, allocations: 0.6001 MB / 363.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.1603, allocations: 12.03 kB / 363.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.759e-05/0.1604, allocations: 66.53 kB / 363.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002365/0.1606, allocations: 67.39 kB / 363.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003526/0.161, allocations: 272 kB / 363.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.353e-05/0.1611, allocations: 80.02 kB / 364 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.892e-05/0.1611, allocations: 36 kB / 364.1 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005724/0.1617, allocations: 326.8 kB / 364.4 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1617, allocations: 0 / 364.4 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.1618, allocations: 15.98 kB / 364.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.1618, allocations: 12 kB / 364.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000422/0.1622, allocations: 222.5 kB / 364.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.1641, allocations: 1.383 MB / 366 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.1645, allocations: 170.9 kB / 366.2 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.1645, allocations: 7.938 kB / 366.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003071/0.1648, allocations: 158.8 kB / 366.3 MB, free: 5.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.1648, allocations: 0 / 366.3 MB, free: 5.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001137/0.166, allocations: 420.8 kB / 366.7 MB, free: 4.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.788e-05/0.1661, allocations: 110.8 kB / 366.9 MB, free: 4.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003069/0.1664, allocations: 258.6 kB / 367.1 MB, free: 4.512 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.1664, allocations: 29.7 kB / 367.1 MB, free: 4.477 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.1666, allocations: 203.9 kB / 367.3 MB, free: 4.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.134e-05/0.1667, allocations: 71 kB / 367.4 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.47e-05/0.1667, allocations: 4 kB / 367.4 MB, free: 4.199 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.1669, allocations: 346.8 kB / 367.7 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.1671, allocations: 72.62 kB / 367.8 MB, free: 3.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.1674, allocations: 177.5 kB / 368 MB, free: 3.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.1676, allocations: 97.14 kB / 368.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.1676, allocations: 3.953 kB / 368.1 MB, free: 3.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006904/0.1683, allocations: 342.5 kB / 368.4 MB, free: 3.125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.1683, allocations: 8 kB / 368.4 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.1683, allocations: 0 / 368.4 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003024/0.1686, allocations: 68.91 kB / 368.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.1689, allocations: 63.84 kB / 368.6 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.1704, allocations: 1.416 MB / 370 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002808/0.1707, allocations: 55.53 kB / 370 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.1708, allocations: 20.17 kB / 370 MB, free: 1.359 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.000218/0.171, allocations: 149.7 kB / 370.2 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.735e-05/0.1711, allocations: 23.72 kB / 370.2 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.609e-05/0.1711, allocations: 34.17 kB / 370.3 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1711, allocations: 4 kB / 370.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1711, allocations: 0 / 370.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1711, allocations: 0 / 370.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004265/0.1716, allocations: 341.3 kB / 370.6 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.1716, allocations: 0 / 370.6 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.1718, allocations: 39.92 kB / 370.6 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001776/0.172, allocations: 52.81 kB / 370.7 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.172, allocations: 11.98 kB / 370.7 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3263/0.4983, allocations: 1.311 MB / 372 MB, free: 18.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.4984, allocations: 1.297 kB / 372 MB, free: 18.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009082/0.4993, allocations: 363.5 kB / 372.4 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.4994, allocations: 119.5 kB / 372.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.977e-05/0.4995, allocations: 7.891 kB / 372.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.4997, allocations: 27.11 kB / 372.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.4998, allocations: 32.22 kB / 372.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.4998, allocations: 5.172 kB / 372.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000189/0.5, allocations: 189.1 kB / 372.7 MB, free: 18.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5, allocations: 0 / 372.7 MB, free: 18.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005199/0.5005, allocations: 83.53 kB / 372.8 MB, free: 18.16 MB / 302.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) * Number of clocked states: 0 () * 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.001211/0.5018, allocations: 0.8964 MB / 373.7 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008356/0.5026, allocations: 314.5 kB / 374 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5026, allocations: 1.094 kB / 374 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003652/0.503, allocations: 204.1 kB / 374.2 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.5033, allocations: 39.67 kB / 374.3 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004362/0.5076, allocations: 3.483 MB / 377.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.508, allocations: 0.7815 MB / 378.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001541/0.5082, allocations: 27.17 kB / 378.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.5084, allocations: 94.36 kB / 378.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5084, allocations: 0 / 378.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02275/0.5311, allocations: 5.282 MB / 383.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.5313, allocations: 228.2 kB / 384.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.942/2.474, allocations: 0 / 384.1 MB, free: 13.52 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat