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: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001471/0.001471, allocations: 197.2 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.431/1.431, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009271/0.0009272, allocations: 91.78 kB / 292.1 MB, free: 6.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.243e-05/4.277e-05, allocations: 7.984 kB / 350.5 MB, free: 2.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 51.49 MB / 402 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3227/0.4326, allocations: 80.17 MB / 482.2 MB, free: 9.266 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001781/0.4328, allocations: 73.81 kB / 482.3 MB, free: 9.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01296/0.4458, allocations: 5.649 MB / 487.9 MB, free: 4.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4458, allocations: 0 / 487.9 MB, free: 4.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.4459, allocations: 8.203 kB / 487.9 MB, free: 4.492 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.0006715/0.4465, allocations: 0.5477 MB / 488.5 MB, free: 3.934 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.4466, allocations: 12.03 kB / 488.5 MB, free: 3.922 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.729e-05/0.4467, allocations: 35.61 kB / 488.5 MB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.4469, allocations: 247.9 kB / 488.8 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.082e-05/0.447, allocations: 86.59 kB / 488.9 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.047e-05/0.447, allocations: 26.56 kB / 488.9 MB, free: 3.523 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003961/0.4474, allocations: 290.2 kB / 489.2 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.4475, allocations: 4 kB / 489.2 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/0.4475, allocations: 7.25 kB / 489.2 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.4475, allocations: 8 kB / 489.2 MB, free: 3.297 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002805/0.4478, allocations: 187.4 kB / 489.4 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.4492, allocations: 1.139 MB / 490.5 MB, free: 2.129 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.4494, allocations: 153.9 kB / 490.7 MB, free: 2.016 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.4495, allocations: 77.92 kB / 490.7 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.4496, allocations: 0 / 490.7 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002105/0.4498, allocations: 157.1 kB / 490.9 MB, free: 1.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.984e-06/0.4498, allocations: 0 / 490.9 MB, free: 1.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.000501/0.4503, allocations: 227.8 kB / 491.1 MB, free: 1.629 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.4503, allocations: 110.3 kB / 491.2 MB, free: 1.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.4505, allocations: 196.1 kB / 491.4 MB, free: 1.332 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.4505, allocations: 33.75 kB / 491.4 MB, free: 1.297 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.854e-05/0.4506, allocations: 173.8 kB / 491.6 MB, free: 1.145 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.791e-05/0.4506, allocations: 68.34 kB / 491.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.169e-05/0.4506, allocations: 5.188 kB / 491.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.646e-05/0.4507, allocations: 336 kB / 492 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.4508, allocations: 58.81 kB / 492.1 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.4509, allocations: 129.8 kB / 492.2 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.4511, allocations: 74.55 kB / 492.3 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4511, allocations: 2.25 kB / 492.3 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003288/0.4514, allocations: 256.2 kB / 492.5 MB, free: 352 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.4514, allocations: 8.109 kB / 492.5 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.4514, allocations: 8 kB / 492.5 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002264/0.4517, allocations: 54.75 kB / 492.6 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.4519, allocations: 47.3 kB / 492.6 MB, free: 244 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.453, allocations: 1.404 MB / 494 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.4533, allocations: 38.7 kB / 494.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.4533, allocations: 13.25 kB / 494.1 MB, free: 14.71 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.0001031/0.4534, allocations: 128.8 kB / 494.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.4534, allocations: 23.72 kB / 494.2 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.054e-05/0.4535, allocations: 26.02 kB / 494.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.4535, allocations: 8.688 kB / 494.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.4535, allocations: 0 / 494.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.4535, allocations: 0 / 494.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003035/0.4538, allocations: 317.4 kB / 494.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4538, allocations: 0 / 494.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.454, allocations: 42.23 kB / 494.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001707/0.4542, allocations: 48.83 kB / 494.7 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.4542, allocations: 7.984 kB / 494.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.4553, allocations: 1.322 MB / 496 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4553, allocations: 0 / 496 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005867/0.4559, allocations: 329.2 kB / 496.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.841e-05/0.456, allocations: 112.8 kB / 496.4 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.456, allocations: 9.672 kB / 496.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.4562, allocations: 23.98 kB / 496.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.601e-05/0.4563, allocations: 27.95 kB / 496.5 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.4563, allocations: 15.05 kB / 496.5 MB, free: 12.08 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001393/0.4564, allocations: 161.5 kB / 496.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4565, allocations: 0 / 496.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003114/0.4568, allocations: 75.84 kB / 496.7 MB, free: 11.85 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.0001491/0.4569, allocations: 115.2 kB / 496.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004573/0.4574, allocations: 278 kB / 497.1 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4574, allocations: 0 / 497.1 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002599/0.4577, allocations: 190.9 kB / 497.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002245/0.4579, allocations: 38.14 kB / 497.3 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.4592, allocations: 0.5108 MB / 497.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.4595, allocations: 0.7635 MB / 498.6 MB, free: 9.891 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.78e-05/0.4596, allocations: 26.06 kB / 498.6 MB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.13e-05/0.4596, allocations: 19.44 kB / 498.7 MB, free: 9.844 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4597, allocations: 0 / 498.7 MB, free: 9.844 MB / 362.7 MB Notification: Performance of Templates: time 0.00554/0.4652, allocations: 2.747 MB / 0.4897 GB, free: 7.176 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches