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.0009886/0.0009886, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008566/0.0008569, allocations: 96.67 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.118e-05/2.136e-05, allocations: 4 kB / 343.8 MB, free: 8.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1282, allocations: 51.49 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4392/0.5675, allocations: 80.45 MB / 475.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001831/0.5677, allocations: 74.3 kB / 475.8 MB, free: 11.51 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01557/0.5833, allocations: 6.358 MB / 482.2 MB, free: 7.102 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5834, allocations: 224 / 482.2 MB, free: 7.102 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.689e-05/0.5834, allocations: 12 kB / 482.2 MB, free: 7.09 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.0009824/0.5844, allocations: 0.5836 MB / 482.8 MB, free: 6.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.5845, allocations: 8.219 kB / 482.8 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002447/0.5847, allocations: 52.39 kB / 482.8 MB, free: 6.434 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.5851, allocations: 260.5 kB / 483.1 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.158e-05/0.5851, allocations: 76.11 kB / 483.1 MB, free: 6.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.073e-05/0.5852, allocations: 20 kB / 483.2 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003127/0.5855, allocations: 182.2 kB / 483.3 MB, free: 5.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.5859, allocations: 277.5 kB / 483.6 MB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.5859, allocations: 0.9375 kB / 483.6 MB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.586, allocations: 3.984 kB / 483.6 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.586, allocations: 8 kB / 483.6 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.5875, allocations: 1.319 MB / 484.9 MB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.5878, allocations: 147.4 kB / 485.1 MB, free: 4.383 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.72e-05/0.5879, allocations: 79.97 kB / 485.2 MB, free: 4.328 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.5879, allocations: 3.688 kB / 485.2 MB, free: 4.328 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001938/0.5881, allocations: 144.3 kB / 485.3 MB, free: 4.191 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.883e-06/0.5881, allocations: 2.812 kB / 485.3 MB, free: 4.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005046/0.5886, allocations: 209.8 kB / 485.5 MB, free: 4.016 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.5887, allocations: 110.8 kB / 485.6 MB, free: 3.883 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.5888, allocations: 197.3 kB / 485.8 MB, free: 3.715 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.5889, allocations: 25.7 kB / 485.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.759e-05/0.589, allocations: 205.5 kB / 486 MB, free: 3.504 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.622e-05/0.589, allocations: 65.77 kB / 486.1 MB, free: 3.449 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.206e-05/0.589, allocations: 0 / 486.1 MB, free: 3.449 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.519e-05/0.5891, allocations: 330.4 kB / 486.4 MB, free: 3.125 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.078e-05/0.5892, allocations: 60.5 kB / 486.5 MB, free: 3.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.5893, allocations: 160.5 kB / 486.6 MB, free: 2.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.5894, allocations: 83.98 kB / 486.7 MB, free: 2.875 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5894, allocations: 0 / 486.7 MB, free: 2.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004772/0.5899, allocations: 282.9 kB / 487 MB, free: 2.641 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.5899, allocations: 8 kB / 487 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.5899, allocations: 3.062 kB / 487 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002254/0.5902, allocations: 59.66 kB / 487.1 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.5904, allocations: 59.91 kB / 487.1 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008465/0.5913, allocations: 1.362 MB / 488.5 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/0.5916, allocations: 47.61 kB / 488.5 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.5916, allocations: 11.5 kB / 488.5 MB, free: 1.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: 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.0001292/0.5917, allocations: 118 kB / 488.7 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003771/0.5921, allocations: 206 kB / 488.9 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.933e-05/0.5922, allocations: 23.72 kB / 488.9 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.775e-05/0.5922, allocations: 28.45 kB / 488.9 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.5922, allocations: 7.953 kB / 488.9 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.5922, allocations: 0 / 488.9 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.5922, allocations: 0 / 488.9 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002212/0.5925, allocations: 291.5 kB / 489.2 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.5925, allocations: 2.156 kB / 489.2 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.5927, allocations: 35.11 kB / 489.2 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001544/0.5928, allocations: 60.06 kB / 489.3 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.5929, allocations: 0 / 489.3 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009316/0.5938, allocations: 1.278 MB / 490.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5938, allocations: 0 / 490.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005505/0.5944, allocations: 319.8 kB / 490.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.5945, allocations: 111.3 kB / 491 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.5945, allocations: 6.875 kB / 491 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.5947, allocations: 15.98 kB / 491 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.418e-05/0.5948, allocations: 35.02 kB / 491.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.5948, allocations: 4 kB / 491.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001309/0.595, allocations: 161.7 kB / 491.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.595, allocations: 0 / 491.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004036/0.5954, allocations: 87.69 kB / 491.3 MB, free: 14.36 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.000922/0.5963, allocations: 0.8547 MB / 492.2 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004496/0.5968, allocations: 269.7 kB / 492.4 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.5968, allocations: 0 / 492.4 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002339/0.597, allocations: 182.2 kB / 492.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002038/0.5972, allocations: 29.53 kB / 492.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.5987, allocations: 0.5323 MB / 493.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.5991, allocations: 0.7789 MB / 493.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000125/0.5992, allocations: 26.02 kB / 494 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.5994, allocations: 90.56 kB / 494.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of SimCode: time 6.92e-07/0.5994, allocations: 0 / 494.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.6239, allocations: 4.397 MB / 498.5 MB, free: 7.438 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002246/0.6241, allocations: 148.4 kB / 498.6 MB, free: 7.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/2.383, allocations: 4 kB / 498.6 MB, free: 7.246 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