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: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001094/0.001094, allocations: 196.9 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.28/1.28, 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.0008946/0.0008948, allocations: 95.41 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.677e-05/2.692e-05, allocations: 7.984 kB / 350.5 MB, free: 2.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1011, allocations: 51.48 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.348/0.4492, allocations: 81.13 MB / 483.2 MB, free: 8.316 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001895/0.4494, allocations: 70.72 kB / 483.2 MB, free: 8.281 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01484/0.4643, allocations: 6.437 MB / 489.7 MB, free: 2.898 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4643, allocations: 0 / 489.7 MB, free: 2.898 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.4643, allocations: 4.562 kB / 489.7 MB, free: 2.895 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.0007324/0.4651, allocations: 0.5727 MB / 490.2 MB, free: 2.309 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.4651, allocations: 16.03 kB / 490.3 MB, free: 2.293 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.4653, allocations: 52.38 kB / 490.3 MB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.4655, allocations: 270.4 kB / 490.6 MB, free: 1.961 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.16e-05/0.4656, allocations: 75.69 kB / 490.6 MB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.635e-05/0.4657, allocations: 29.25 kB / 490.7 MB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004455/0.4661, allocations: 332.3 kB / 491 MB, free: 1.617 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.4661, allocations: 0 / 491 MB, free: 1.617 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.4662, allocations: 11.75 kB / 491 MB, free: 1.613 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.4662, allocations: 8 kB / 491 MB, free: 1.605 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003116/0.4665, allocations: 208.5 kB / 491.2 MB, free: 1.473 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.4682, allocations: 1.38 MB / 492.6 MB, free: 204 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002635/0.4684, allocations: 166.8 kB / 492.8 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.4686, allocations: 82.58 kB / 492.8 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.4686, allocations: 4 kB / 492.8 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.4689, allocations: 145.7 kB / 493 MB, free: 15.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.4689, allocations: 0 / 493 MB, free: 15.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005658/0.4695, allocations: 230.6 kB / 493.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.4695, allocations: 106.8 kB / 493.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002426/0.4698, allocations: 229.7 kB / 493.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.4698, allocations: 28.89 kB / 493.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.4699, allocations: 205.3 kB / 493.8 MB, free: 15.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.922e-05/0.47, allocations: 80.02 kB / 493.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.205e-05/0.47, allocations: 3.469 kB / 493.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.4702, allocations: 342.1 kB / 494.2 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.4703, allocations: 70.88 kB / 494.3 MB, free: 14.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.4705, allocations: 153.7 kB / 494.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.4706, allocations: 78.28 kB / 494.5 MB, free: 14.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4706, allocations: 4 kB / 494.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005953/0.4712, allocations: 312.5 kB / 494.8 MB, free: 14.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.4713, allocations: 12.28 kB / 494.8 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.4713, allocations: 0 / 494.8 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002522/0.4715, allocations: 56.81 kB / 494.9 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.4718, allocations: 59.91 kB / 494.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.473, allocations: 1.41 MB / 496.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.4733, allocations: 47.61 kB / 496.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.4733, allocations: 16 kB / 496.4 MB, free: 12.4 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.0001013/0.4734, allocations: 121.2 kB / 496.5 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.772e-05/0.4735, allocations: 31.81 kB / 496.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.26e-05/0.4735, allocations: 29.95 kB / 496.6 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.4735, allocations: 7.953 kB / 496.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.4735, allocations: 0 / 496.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.4735, allocations: 0 / 496.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003228/0.4739, allocations: 341.3 kB / 496.9 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4739, allocations: 0 / 496.9 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.4741, allocations: 31.98 kB / 496.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001811/0.4743, allocations: 56.81 kB / 497 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.4743, allocations: 7.984 kB / 497 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.4754, allocations: 1.335 MB / 498.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4754, allocations: 0 / 498.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006802/0.4761, allocations: 329.6 kB / 498.7 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.4762, allocations: 116.7 kB / 498.8 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.413e-05/0.4763, allocations: 4 kB / 498.8 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.4765, allocations: 27.94 kB / 498.8 MB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.788e-05/0.4766, allocations: 36 kB / 498.8 MB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.4766, allocations: 4 kB / 498.8 MB, free: 9.723 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001549/0.4767, allocations: 187.1 kB / 499 MB, free: 9.543 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4767, allocations: 0 / 499 MB, free: 9.543 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003853/0.4771, allocations: 95.77 kB / 499.1 MB, free: 9.449 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.000184/0.4773, allocations: 108.4 kB / 499.2 MB, free: 9.336 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005696/0.4779, allocations: 294.3 kB / 499.5 MB, free: 9.039 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4779, allocations: 0 / 499.5 MB, free: 9.039 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002759/0.4782, allocations: 196 kB / 499.7 MB, free: 8.836 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.4785, allocations: 35.39 kB / 499.7 MB, free: 8.801 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.4797, allocations: 496.3 kB / 0.4885 GB, free: 8.297 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.4801, allocations: 0.7794 MB / 0.4893 GB, free: 7.492 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000119/0.4802, allocations: 26.06 kB / 0.4893 GB, free: 7.469 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.721e-05/0.4803, allocations: 19.44 kB / 0.4893 GB, free: 7.449 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4803, allocations: 0 / 0.4893 GB, free: 7.449 MB / 362.7 MB Notification: Performance of Templates: time 0.006026/0.4863, allocations: 2.784 MB / 0.492 GB, free: 4.742 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches