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.0009606/0.0009605, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 221.4 MB / 235.5 MB, free: 2.961 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.0008715/0.0008714, allocations: 88.05 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.673e-05/2.675e-05, allocations: 0 / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.08959, allocations: 50.42 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3004/0.3901, allocations: 80.32 MB / 474.7 MB, free: 7.152 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/0.3904, allocations: 67.97 kB / 474.7 MB, free: 7.086 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0167/0.4071, allocations: 6.332 MB / 481.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4071, allocations: 0 / 481.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.4071, allocations: 4 kB / 481.1 MB, free: 0.7266 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.0009457/0.4081, allocations: 0.5903 MB / 481.7 MB, free: 92 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.4081, allocations: 12.03 kB / 481.7 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.42e-05/0.4082, allocations: 66.53 kB / 481.7 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.331e-05/0.4083, allocations: 40.14 kB / 481.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.4087, allocations: 267.4 kB / 482 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.651e-05/0.4088, allocations: 83.97 kB / 482.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.327e-05/0.4088, allocations: 32 kB / 482.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005405/0.4094, allocations: 324.7 kB / 482.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.4094, allocations: 0 / 482.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/0.4095, allocations: 12 kB / 482.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.4095, allocations: 11.98 kB / 482.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003525/0.4098, allocations: 203 kB / 482.7 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/0.4117, allocations: 1.388 MB / 484.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.412, allocations: 164.2 kB / 484.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.4122, allocations: 84.81 kB / 484.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.4122, allocations: 0 / 484.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.4125, allocations: 155.5 kB / 484.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.442e-06/0.4125, allocations: 0 / 484.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005772/0.4131, allocations: 223.4 kB / 484.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.4131, allocations: 106.8 kB / 484.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002247/0.4134, allocations: 231.2 kB / 485 MB, free: 12.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.4134, allocations: 29.7 kB / 485 MB, free: 12.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.4135, allocations: 199.7 kB / 485.2 MB, free: 12.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.625e-05/0.4136, allocations: 78.98 kB / 485.3 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.285e-05/0.4136, allocations: 4 kB / 485.3 MB, free: 12.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.4137, allocations: 338.8 kB / 485.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.4139, allocations: 64 kB / 485.7 MB, free: 11.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.414, allocations: 166.3 kB / 485.9 MB, free: 11.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.4142, allocations: 81.17 kB / 486 MB, free: 11.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4142, allocations: 0 / 486 MB, free: 11.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005799/0.4148, allocations: 316.6 kB / 486.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.4148, allocations: 4 kB / 486.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.4148, allocations: 7.984 kB / 486.3 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002536/0.4151, allocations: 52.98 kB / 486.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.4154, allocations: 63.91 kB / 486.4 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.4166, allocations: 1.408 MB / 487.8 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002619/0.4169, allocations: 51.7 kB / 487.8 MB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.4169, allocations: 12.09 kB / 487.9 MB, free: 9.414 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.0001146/0.417, allocations: 122.2 kB / 488 MB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.406e-05/0.4171, allocations: 23.72 kB / 488 MB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.4171, allocations: 33.95 kB / 488 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.4172, allocations: 0 / 488 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.4172, allocations: 0 / 488 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/0.4172, allocations: 11.94 kB / 488 MB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003521/0.4175, allocations: 337.2 kB / 488.4 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.4175, allocations: 4 kB / 488.4 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/0.4178, allocations: 43.97 kB / 488.4 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/0.418, allocations: 48.81 kB / 488.5 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.418, allocations: 4 kB / 488.5 MB, free: 8.742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.419, allocations: 1.319 MB / 489.8 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.4191, allocations: 4.062 kB / 489.8 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006126/0.4197, allocations: 333.5 kB / 490.1 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.4198, allocations: 112.8 kB / 490.2 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.549e-05/0.4198, allocations: 8 kB / 490.2 MB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.42, allocations: 28.05 kB / 490.3 MB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.293e-05/0.4201, allocations: 31.91 kB / 490.3 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.4202, allocations: 7.984 kB / 490.3 MB, free: 6.734 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001828/0.4203, allocations: 183.1 kB / 490.5 MB, free: 6.559 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.894e-06/0.4204, allocations: 0 / 490.5 MB, free: 6.559 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004136/0.4208, allocations: 95.62 kB / 490.6 MB, free: 6.465 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.000906/0.4217, allocations: 0.8748 MB / 491.5 MB, free: 5.562 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005461/0.4223, allocations: 298.4 kB / 491.7 MB, free: 5.258 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4223, allocations: 0 / 491.7 MB, free: 5.258 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002521/0.4225, allocations: 182.6 kB / 491.9 MB, free: 5.066 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.4228, allocations: 44.98 kB / 492 MB, free: 5.023 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.4242, allocations: 0.5563 MB / 492.5 MB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.4245, allocations: 0.7794 MB / 493.3 MB, free: 3.629 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.4246, allocations: 26.06 kB / 493.3 MB, free: 3.605 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.4247, allocations: 91.41 kB / 493.4 MB, free: 3.516 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4247, allocations: 0 / 493.4 MB, free: 3.516 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01794/0.4427, allocations: 5.327 MB / 498.7 MB, free: 14.37 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.4429, allocations: 193.4 kB / 498.9 MB, free: 14.14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.798/2.241, allocations: 9.625 kB / 498.9 MB, free: 14.13 MB / 378.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