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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001384/0.001385, allocations: 197.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009454/0.0009453, allocations: 88.31 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.335e-05/3.344e-05, allocations: 4 kB / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.09868, allocations: 51.49 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3424/0.4411, allocations: 81.13 MB / 483.3 MB, free: 8.324 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/0.4414, allocations: 68.7 kB / 483.3 MB, free: 8.293 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01563/0.457, allocations: 6.428 MB / 489.8 MB, free: 2.914 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4571, allocations: 0.6562 kB / 489.8 MB, free: 2.914 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.233e-05/0.4571, allocations: 8 kB / 489.8 MB, free: 2.906 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.001015/0.4581, allocations: 0.5745 MB / 490.3 MB, free: 2.316 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.4582, allocations: 8.031 kB / 490.3 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.4583, allocations: 71.84 kB / 490.4 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002211/0.4585, allocations: 56.38 kB / 490.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.4589, allocations: 266.2 kB / 490.7 MB, free: 1.918 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.459, allocations: 84.05 kB / 490.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.87e-05/0.4591, allocations: 33.12 kB / 490.8 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/0.4596, allocations: 324.6 kB / 491.2 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.4596, allocations: 0 / 491.2 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.501e-05/0.4597, allocations: 18.12 kB / 491.2 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.4597, allocations: 8 kB / 491.2 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003808/0.4601, allocations: 199.4 kB / 491.4 MB, free: 1.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.4619, allocations: 1.389 MB / 492.8 MB, free: 152 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/0.4622, allocations: 159.3 kB / 492.9 MB, free: 36 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.4623, allocations: 81.33 kB / 493 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.4624, allocations: 19.16 kB / 493 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002858/0.4627, allocations: 140.9 kB / 493.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 2.505e-06/0.4627, allocations: 0 / 493.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006138/0.4633, allocations: 229.9 kB / 493.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.723e-05/0.4634, allocations: 111.1 kB / 493.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.4636, allocations: 232.8 kB / 493.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.4637, allocations: 29.7 kB / 493.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.4639, allocations: 200 kB / 493.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.361e-05/0.4639, allocations: 71 kB / 494 MB, free: 15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.194e-05/0.4639, allocations: 7.938 kB / 494 MB, free: 14.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4641, allocations: 350.8 kB / 494.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.4642, allocations: 64 kB / 494.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.4644, allocations: 149.7 kB / 494.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.4646, allocations: 82.05 kB / 494.7 MB, free: 14.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4646, allocations: 0 / 494.7 MB, free: 14.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006436/0.4653, allocations: 320.5 kB / 495 MB, free: 14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.4653, allocations: 5.406 kB / 495 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.4653, allocations: 4.281 kB / 495 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003014/0.4656, allocations: 60.81 kB / 495 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002824/0.4659, allocations: 59.84 kB / 495.1 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.4674, allocations: 1.407 MB / 496.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003133/0.4677, allocations: 51.83 kB / 496.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.4678, allocations: 11.98 kB / 496.6 MB, free: 12.26 MB / 362.7 MB 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.0001181/0.4679, allocations: 120.9 kB / 496.7 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.242e-05/0.4679, allocations: 27.72 kB / 496.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.74e-05/0.468, allocations: 29.91 kB / 496.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.468, allocations: 8 kB / 496.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.468, allocations: 0 / 496.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.468, allocations: 0 / 496.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003913/0.4684, allocations: 345.6 kB / 497.1 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.4685, allocations: 0 / 497.1 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.4687, allocations: 35.98 kB / 497.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001933/0.4689, allocations: 60.75 kB / 497.2 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.4689, allocations: 4 kB / 497.2 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/0.47, allocations: 1.33 MB / 498.5 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.47, allocations: 0 / 498.5 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006063/0.4707, allocations: 329.6 kB / 498.8 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.4708, allocations: 116.7 kB / 498.9 MB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.502e-05/0.4708, allocations: 7.953 kB / 499 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.4711, allocations: 19.98 kB / 499 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.4712, allocations: 35.88 kB / 499 MB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.4712, allocations: 8.062 kB / 499 MB, free: 9.582 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001715/0.4714, allocations: 184 kB / 499.2 MB, free: 9.406 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4714, allocations: 0 / 499.2 MB, free: 9.406 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003853/0.4718, allocations: 91.78 kB / 499.3 MB, free: 9.316 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.0009278/0.4727, allocations: 0.8798 MB / 0.4884 GB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005495/0.4733, allocations: 290 kB / 0.4887 GB, free: 8.113 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4733, allocations: 4.656 kB / 0.4887 GB, free: 8.109 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.4736, allocations: 186.6 kB / 0.4889 GB, free: 7.918 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.4738, allocations: 42.47 kB / 0.4889 GB, free: 7.875 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.4753, allocations: 0.55 MB / 0.4895 GB, free: 7.297 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.4756, allocations: 0.7794 MB / 0.4902 GB, free: 6.492 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.4757, allocations: 22.08 kB / 0.4903 GB, free: 6.473 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.4758, allocations: 91.41 kB / 0.4903 GB, free: 6.383 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4758, allocations: 3.938 kB / 0.4904 GB, free: 6.379 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.4938, allocations: 5.343 MB / 0.4956 GB, free: 1.312 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.494, allocations: 188.9 kB / 0.4958 GB, free: 1.094 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.801/2.295, allocations: 0 / 0.4958 GB, free: 1.094 MB / 362.7 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