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.001705/0.001705, allocations: 196.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.572/1.572, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009588/0.0009585, allocations: 92.28 kB / 292.1 MB, free: 5.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.18e-05, allocations: 7.984 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09136/0.09141, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.33/0.4214, allocations: 80.18 MB / 482.3 MB, free: 9.242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.4217, allocations: 70.09 kB / 482.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01369/0.4354, allocations: 5.66 MB / 488 MB, free: 4.473 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4355, allocations: 224 / 488 MB, free: 4.473 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.649e-05/0.4355, allocations: 4 kB / 488 MB, free: 4.469 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.0007748/0.4363, allocations: 0.5516 MB / 488.6 MB, free: 3.902 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4363, allocations: 12.02 kB / 488.6 MB, free: 3.891 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.09e-05/0.4364, allocations: 58.92 kB / 488.7 MB, free: 3.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.4365, allocations: 35.62 kB / 488.7 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.4368, allocations: 249.6 kB / 488.9 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.583e-05/0.4369, allocations: 81.67 kB / 489 MB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.201e-05/0.4369, allocations: 30.55 kB / 489 MB, free: 3.441 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004195/0.4373, allocations: 294.8 kB / 489.3 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.4373, allocations: 0 / 489.3 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.902e-05/0.4374, allocations: 15.36 kB / 489.4 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.4374, allocations: 4 kB / 489.4 MB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002912/0.4377, allocations: 187.1 kB / 489.5 MB, free: 3.086 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.4392, allocations: 1.14 MB / 490.7 MB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/0.4394, allocations: 148.3 kB / 490.8 MB, free: 1.934 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.4395, allocations: 79.33 kB / 490.9 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.4396, allocations: 4 kB / 490.9 MB, free: 1.879 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002325/0.4398, allocations: 158 kB / 491.1 MB, free: 1.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.4398, allocations: 0 / 491.1 MB, free: 1.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005269/0.4404, allocations: 222.1 kB / 491.3 MB, free: 1.547 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.4404, allocations: 110.5 kB / 491.4 MB, free: 1.418 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.4406, allocations: 193.9 kB / 491.6 MB, free: 1.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.4406, allocations: 33.27 kB / 491.6 MB, free: 1.215 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.911e-05/0.4407, allocations: 169.2 kB / 491.8 MB, free: 1.066 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.149e-05/0.4407, allocations: 70.7 kB / 491.8 MB, free: 1.008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.135e-05/0.4407, allocations: 7.5 kB / 491.8 MB, free: 1.004 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.716e-05/0.4408, allocations: 337.6 kB / 492.2 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.865e-05/0.4409, allocations: 65.25 kB / 492.2 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.441, allocations: 128.7 kB / 492.4 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.4411, allocations: 71.42 kB / 492.4 MB, free: 476 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.4412, allocations: 0 / 492.4 MB, free: 476 kB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003211/0.4415, allocations: 254.8 kB / 492.7 MB, free: 268 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.4415, allocations: 12.52 kB / 492.7 MB, free: 256 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.4415, allocations: 0 / 492.7 MB, free: 256 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002292/0.4418, allocations: 55.11 kB / 492.7 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.4419, allocations: 52.16 kB / 492.8 MB, free: 160 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.4433, allocations: 1.409 MB / 494.2 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.4435, allocations: 39.86 kB / 494.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.4436, allocations: 9.594 kB / 494.3 MB, free: 14.6 MB / 362.7 MB 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.0001094/0.4437, allocations: 128.8 kB / 494.4 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.4437, allocations: 19.72 kB / 494.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.643e-05/0.4438, allocations: 33.95 kB / 494.4 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.4438, allocations: 0 / 494.4 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.4438, allocations: 0 / 494.4 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.4438, allocations: 4 kB / 494.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003507/0.4442, allocations: 318.8 kB / 494.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.4442, allocations: 3.984 kB / 494.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.4443, allocations: 31.92 kB / 494.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001736/0.4445, allocations: 48.83 kB / 494.8 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.4446, allocations: 11.98 kB / 494.8 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.4457, allocations: 1.325 MB / 496.2 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4457, allocations: 0 / 496.2 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005978/0.4463, allocations: 317.5 kB / 496.5 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.4465, allocations: 116.8 kB / 496.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.4465, allocations: 8.156 kB / 496.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.4467, allocations: 22.14 kB / 496.6 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.448e-05/0.4468, allocations: 35.88 kB / 496.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.4468, allocations: 7.984 kB / 496.7 MB, free: 11.97 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001482/0.4469, allocations: 161.4 kB / 496.8 MB, free: 11.81 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.447, allocations: 0 / 496.8 MB, free: 11.81 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003398/0.4473, allocations: 79.78 kB / 496.9 MB, free: 11.73 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: 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.0009977/0.4483, allocations: 0.8682 MB / 497.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004922/0.4488, allocations: 278.1 kB / 498 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.4488, allocations: 0 / 498 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002588/0.4491, allocations: 191.3 kB / 498.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.4494, allocations: 34.14 kB / 498.3 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.4509, allocations: 0.5845 MB / 498.8 MB, free: 9.711 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003584/0.4513, allocations: 0.7635 MB / 499.6 MB, free: 8.922 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.4514, allocations: 22.08 kB / 499.6 MB, free: 8.898 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.4516, allocations: 79.41 kB / 499.7 MB, free: 8.82 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4516, allocations: 0 / 499.7 MB, free: 8.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.4712, allocations: 4.999 MB / 0.4929 GB, free: 4.09 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/0.4714, allocations: 182.4 kB / 0.4931 GB, free: 3.863 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/2.191, allocations: 7.875 kB / 0.4931 GB, free: 3.855 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