Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 202.8 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.505/1.505, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008193/0.0008193, allocations: 102.6 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.316e-05/2.318e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1163, allocations: 51.49 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3439/0.4602, allocations: 79.5 MB / 474.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.4605, allocations: 73.53 kB / 474.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01313/0.4736, allocations: 5.603 MB / 480.5 MB, free: 8.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.4736, allocations: 4.219 kB / 480.5 MB, free: 8.676 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.4737, allocations: 4 kB / 480.5 MB, free: 8.672 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.0007014/0.4744, allocations: 0.5434 MB / 481 MB, free: 8.109 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.4744, allocations: 12.03 kB / 481 MB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.141e-05/0.4745, allocations: 31.62 kB / 481 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/0.4748, allocations: 258.9 kB / 481.3 MB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.175e-05/0.4748, allocations: 64.19 kB / 481.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.604e-05/0.4749, allocations: 19.61 kB / 481.4 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002773/0.4752, allocations: 167.3 kB / 481.5 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.4755, allocations: 250 kB / 481.8 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.4755, allocations: 3.984 kB / 481.8 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.4756, allocations: 0 / 481.8 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.4756, allocations: 8 kB / 481.8 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.4769, allocations: 1.072 MB / 482.9 MB, free: 6.398 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002147/0.4771, allocations: 148.8 kB / 483 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.323e-05/0.4772, allocations: 70.05 kB / 483.1 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.4772, allocations: 0 / 483.1 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001988/0.4775, allocations: 146.6 kB / 483.2 MB, free: 6.109 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.242e-06/0.4775, allocations: 0 / 483.2 MB, free: 6.109 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004785/0.4779, allocations: 211.9 kB / 483.4 MB, free: 5.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.478, allocations: 105.7 kB / 483.5 MB, free: 5.805 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.4781, allocations: 173.8 kB / 483.7 MB, free: 5.648 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.4781, allocations: 25.7 kB / 483.7 MB, free: 5.617 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.4e-05/0.4782, allocations: 171.5 kB / 483.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.4783, allocations: 65.36 kB / 484 MB, free: 5.406 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.055e-05/0.4783, allocations: 0 / 484 MB, free: 5.406 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.746e-05/0.4783, allocations: 331.3 kB / 484.3 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.348e-05/0.4784, allocations: 56.75 kB / 484.3 MB, free: 5.047 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.4785, allocations: 116.2 kB / 484.5 MB, free: 4.938 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.169e-05/0.4786, allocations: 72.92 kB / 484.5 MB, free: 4.891 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4786, allocations: 0 / 484.5 MB, free: 4.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002805/0.4789, allocations: 230.5 kB / 484.8 MB, free: 4.703 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.4789, allocations: 7.938 kB / 484.8 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.4789, allocations: 8.156 kB / 484.8 MB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002134/0.4792, allocations: 47.14 kB / 484.8 MB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.4794, allocations: 51.91 kB / 484.9 MB, free: 4.598 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007975/0.4802, allocations: 1.363 MB / 486.2 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.4804, allocations: 35.7 kB / 486.3 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.4804, allocations: 11.38 kB / 486.3 MB, free: 3.145 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.0001028/0.4805, allocations: 114.3 kB / 486.4 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003552/0.4809, allocations: 218.2 kB / 486.6 MB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.48e-05/0.4809, allocations: 19.81 kB / 486.6 MB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.883e-05/0.4809, allocations: 20.53 kB / 486.6 MB, free: 2.809 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.481, allocations: 3.984 kB / 486.6 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.481, allocations: 4 kB / 486.6 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.481, allocations: 0 / 486.6 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.4812, allocations: 270.1 kB / 486.9 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.4812, allocations: 0 / 486.9 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.4813, allocations: 38.81 kB / 486.9 MB, free: 2.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001473/0.4815, allocations: 50.12 kB / 487 MB, free: 2.465 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.4815, allocations: 4 kB / 487 MB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006946/0.4822, allocations: 1.282 MB / 488.3 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4822, allocations: 0 / 488.3 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004486/0.4827, allocations: 311.7 kB / 488.6 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.399e-05/0.4828, allocations: 115.9 kB / 488.7 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.4828, allocations: 0 / 488.7 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.483, allocations: 23.23 kB / 488.7 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.728e-05/0.483, allocations: 31.31 kB / 488.8 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.4831, allocations: 7.438 kB / 488.8 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.498e-05/0.4831, allocations: 141.7 kB / 488.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4831, allocations: 0 / 488.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002987/0.4834, allocations: 79.62 kB / 489 MB, free: 0.4961 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.0007143/0.4842, allocations: 0.8432 MB / 489.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004109/0.4846, allocations: 250.7 kB / 490.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4846, allocations: 4.375 kB / 490.1 MB, free: 15.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002332/0.4848, allocations: 185.9 kB / 490.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.485, allocations: 28.38 kB / 490.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.4864, allocations: 0.5474 MB / 490.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.4868, allocations: 0.7672 MB / 491.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.364e-05/0.4869, allocations: 22.08 kB / 491.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.776e-05/0.487, allocations: 80.66 kB / 491.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.487, allocations: 0 / 491.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02447/0.5114, allocations: 4.094 MB / 495.8 MB, free: 9.895 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/0.5117, allocations: 140.7 kB / 495.9 MB, free: 9.699 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/2.234, allocations: 0 / 495.9 MB, free: 9.699 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat