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.001467/0.001466, allocations: 196.9 kB / 18.11 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.604/1.604, allocations: 226.5 MB / 245.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007735/0.0007735, allocations: 99.7 kB / 297.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002732/0.0002731, allocations: 8 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3171, allocations: 51.28 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1222/0.4394, allocations: 81.14 MB / 490.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.4397, allocations: 71.95 kB / 490.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01858/0.4583, allocations: 6.424 MB / 497 MB, free: 3.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4584, allocations: 0 / 497 MB, free: 3.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.124e-05/0.4584, allocations: 12 kB / 497 MB, free: 3.828 MB / 362.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.001122/0.4595, allocations: 0.6018 MB / 497.6 MB, free: 3.168 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.4596, allocations: 12.02 kB / 497.6 MB, free: 3.156 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002295/0.4598, allocations: 52.47 kB / 497.7 MB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004431/0.4603, allocations: 276.8 kB / 498 MB, free: 2.793 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.509e-05/0.4604, allocations: 76.62 kB / 498 MB, free: 2.707 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.007e-05/0.4605, allocations: 32.38 kB / 498.1 MB, free: 2.676 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006274/0.4611, allocations: 335.4 kB / 498.4 MB, free: 2.336 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.4612, allocations: 11.92 kB / 498.4 MB, free: 2.324 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.844e-05/0.4612, allocations: 16 kB / 498.4 MB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.4612, allocations: 8 kB / 498.4 MB, free: 2.301 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005068/0.4617, allocations: 222.5 kB / 498.6 MB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002487/0.4642, allocations: 1.38 MB / 0.4883 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.4646, allocations: 166.6 kB / 0.4885 GB, free: 440 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.4648, allocations: 87.23 kB / 0.4885 GB, free: 352 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.4649, allocations: 7.938 kB / 0.4885 GB, free: 344 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003612/0.4652, allocations: 169.6 kB / 0.4887 GB, free: 156 kB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 3.556e-06/0.4653, allocations: 0 / 0.4887 GB, free: 156 kB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.00133/0.4666, allocations: 411.1 kB / 0.4891 GB, free: 15.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.4667, allocations: 114.8 kB / 0.4892 GB, free: 15.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003662/0.4671, allocations: 258.7 kB / 0.4895 GB, free: 15.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.4671, allocations: 33.7 kB / 0.4895 GB, free: 15.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.4673, allocations: 199.9 kB / 0.4897 GB, free: 15.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.515e-05/0.4674, allocations: 71.08 kB / 0.4897 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.441e-05/0.4674, allocations: 7.938 kB / 0.4898 GB, free: 15.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.4676, allocations: 338.8 kB / 0.4901 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001757/0.4678, allocations: 75.72 kB / 0.4902 GB, free: 14.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.4681, allocations: 167.1 kB / 0.4903 GB, free: 14.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003602/0.4684, allocations: 221.8 kB / 0.4905 GB, free: 14.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.4684, allocations: 4 kB / 0.4905 GB, free: 14.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007545/0.4692, allocations: 336.3 kB / 0.4908 GB, free: 13.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.4692, allocations: 11.94 kB / 0.4909 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.4693, allocations: 0 / 0.4909 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003275/0.4696, allocations: 56.8 kB / 0.4909 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003186/0.4699, allocations: 68.06 kB / 0.491 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.4715, allocations: 1.401 MB / 0.4923 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.4719, allocations: 55.64 kB / 0.4924 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.4719, allocations: 8 kB / 0.4924 GB, free: 12.07 MB / 378.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 () * Number of clocked 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.0002793/0.4722, allocations: 149.9 kB / 0.4925 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.215e-05/0.4723, allocations: 27.72 kB / 0.4926 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.831e-05/0.4723, allocations: 34.11 kB / 0.4926 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.4723, allocations: 4 kB / 0.4926 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.4723, allocations: 0 / 0.4926 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.4724, allocations: 3.938 kB / 0.4926 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004482/0.4728, allocations: 341.3 kB / 0.4929 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.4728, allocations: 4 kB / 0.4929 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001983/0.473, allocations: 31.98 kB / 0.493 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001975/0.4732, allocations: 56.81 kB / 0.493 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.4733, allocations: 7.984 kB / 0.493 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.4745, allocations: 1.323 MB / 0.4943 GB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.4745, allocations: 3.984 kB / 0.4943 GB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007551/0.4753, allocations: 356.5 kB / 0.4947 GB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.4755, allocations: 116.8 kB / 0.4948 GB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.139e-05/0.4755, allocations: 12.06 kB / 0.4948 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.4757, allocations: 19.98 kB / 0.4948 GB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.4758, allocations: 31.88 kB / 0.4948 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.4759, allocations: 8 kB / 0.4949 GB, free: 9.336 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001908/0.4761, allocations: 186 kB / 0.495 GB, free: 9.156 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4761, allocations: 0 / 0.495 GB, free: 9.156 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005744/0.4767, allocations: 99.69 kB / 0.4951 GB, free: 9.059 MB / 378.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) * Number of clocked states: 0 () * 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.0002623/0.4769, allocations: 111.2 kB / 0.4952 GB, free: 8.941 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000828/0.4778, allocations: 306.4 kB / 0.4955 GB, free: 8.629 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4778, allocations: 4.562 kB / 0.4955 GB, free: 8.625 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.4782, allocations: 202.6 kB / 0.4957 GB, free: 8.414 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003937/0.4786, allocations: 36.34 kB / 0.4958 GB, free: 8.375 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.4806, allocations: 0.842 MB / 0.4966 GB, free: 7.504 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.4811, allocations: 0.7677 MB / 0.4973 GB, free: 6.711 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001589/0.4813, allocations: 26.28 kB / 0.4974 GB, free: 6.688 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.151e-05/0.4814, allocations: 23.44 kB / 0.4974 GB, free: 6.664 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4814, allocations: 0 / 0.4974 GB, free: 6.664 MB / 378.7 MB Notification: Performance of Templates: time 0.008881/0.4903, allocations: 2.808 MB / 0.5001 GB, free: 3.895 MB / 378.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/jenkins1/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