Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.001342/0.001342, 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.458/1.458, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008491/0.0008491, allocations: 86.31 kB / 281.1 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.869e-05/1.865e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09177/0.0918, allocations: 50.43 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3111/0.4029, allocations: 79.64 MB / 467.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000178/0.4031, allocations: 71.95 kB / 467.3 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01611/0.4193, allocations: 6.265 MB / 473.5 MB, free: 8.711 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4193, allocations: 0 / 473.5 MB, free: 8.711 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.319e-05/0.4193, allocations: 11.98 kB / 473.6 MB, free: 8.699 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008333/0.4202, allocations: 0.5866 MB / 474.1 MB, free: 8.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.4202, allocations: 8.031 kB / 474.1 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.032e-05/0.4203, allocations: 39.53 kB / 474.2 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.4206, allocations: 263.5 kB / 474.4 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.341e-05/0.4207, allocations: 76.17 kB / 474.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.266e-05/0.4208, allocations: 16.34 kB / 474.5 MB, free: 7.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003324/0.4211, allocations: 181.5 kB / 474.7 MB, free: 7.441 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004489/0.4216, allocations: 279.1 kB / 475 MB, free: 7.148 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.4216, allocations: 4 kB / 475 MB, free: 7.145 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/0.4216, allocations: 3.984 kB / 475 MB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.4216, allocations: 8 kB / 475 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.4234, allocations: 1.313 MB / 476.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002419/0.4236, allocations: 139.4 kB / 476.4 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.4238, allocations: 80.83 kB / 476.5 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.4238, allocations: 7.938 kB / 476.5 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/0.424, allocations: 143.7 kB / 476.7 MB, free: 5.336 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.424, allocations: 0 / 476.7 MB, free: 5.336 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005204/0.4246, allocations: 208.6 kB / 476.9 MB, free: 5.125 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.4246, allocations: 118.7 kB / 477 MB, free: 4.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.4248, allocations: 192.5 kB / 477.2 MB, free: 4.793 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.4248, allocations: 25.7 kB / 477.2 MB, free: 4.762 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.425, allocations: 204 kB / 477.4 MB, free: 4.555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.452e-05/0.425, allocations: 67.06 kB / 477.5 MB, free: 4.488 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.19e-05/0.425, allocations: 0 / 477.5 MB, free: 4.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.4252, allocations: 334.8 kB / 477.8 MB, free: 4.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.4253, allocations: 60 kB / 477.9 MB, free: 4.094 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.4254, allocations: 154.8 kB / 478 MB, free: 3.902 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.4256, allocations: 73.11 kB / 478.1 MB, free: 3.832 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.4256, allocations: 4 kB / 478.1 MB, free: 3.828 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005471/0.4261, allocations: 280.7 kB / 478.4 MB, free: 3.547 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.4262, allocations: 7.953 kB / 478.4 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.4262, allocations: 4 kB / 478.4 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002659/0.4264, allocations: 64.97 kB / 478.4 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002488/0.4267, allocations: 63.91 kB / 478.5 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.4279, allocations: 1.38 MB / 479.9 MB, free: 1.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/0.4281, allocations: 31.83 kB / 479.9 MB, free: 1.883 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.4282, allocations: 8.094 kB / 479.9 MB, free: 1.875 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: 10 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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.0001383/0.4283, allocations: 124.5 kB / 480 MB, free: 1.75 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004177/0.4287, allocations: 208.6 kB / 480.2 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.338e-05/0.4288, allocations: 23.72 kB / 480.3 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.831e-05/0.4288, allocations: 29.95 kB / 480.3 MB, free: 1.488 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.4289, allocations: 4 kB / 480.3 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.4289, allocations: 0 / 480.3 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.4289, allocations: 0 / 480.3 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002736/0.4291, allocations: 297.8 kB / 480.6 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.4292, allocations: 0 / 480.6 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.4294, allocations: 35.92 kB / 480.6 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001664/0.4295, allocations: 56.81 kB / 480.7 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.4296, allocations: 4 kB / 480.7 MB, free: 1.059 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.4306, allocations: 1.279 MB / 482 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4306, allocations: 3.938 kB / 482 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005629/0.4312, allocations: 313.6 kB / 482.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.965e-05/0.4313, allocations: 116.8 kB / 482.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/0.4313, allocations: 0 / 482.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.4315, allocations: 19.98 kB / 482.4 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.256e-05/0.4316, allocations: 35.88 kB / 482.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.4316, allocations: 8.062 kB / 482.4 MB, free: 15.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001182/0.4317, allocations: 152.5 kB / 482.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.532e-06/0.4317, allocations: 0 / 482.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003626/0.4321, allocations: 87.62 kB / 482.7 MB, free: 14.89 MB / 362.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: 5 ($whenCondition1,switch1.off,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): 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.0008281/0.4329, allocations: 0.8582 MB / 483.5 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004545/0.4334, allocations: 273.7 kB / 483.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.4334, allocations: 0 / 483.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002247/0.4336, allocations: 178.3 kB / 484 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.4339, allocations: 28.42 kB / 484 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001359/0.4352, allocations: 0.534 MB / 484.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.4355, allocations: 0.7789 MB / 485.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.4357, allocations: 18.08 kB / 485.3 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.4358, allocations: 91.41 kB / 485.4 MB, free: 12.04 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4358, allocations: 0 / 485.4 MB, free: 12.04 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02377/0.4596, allocations: 4.401 MB / 489.8 MB, free: 7.668 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.4598, allocations: 157.5 kB / 490 MB, free: 7.473 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/2.176, allocations: 0 / 490 MB, free: 7.473 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat