Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 183 kB / 18.04 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 205.4 MB / 224.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009427/0.0009424, allocations: 97.03 kB / 272.5 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003437, allocations: 8 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2513, allocations: 47.57 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09716/0.3485, allocations: 78.8 MB / 455.8 MB, free: 1.746 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/0.3488, allocations: 67.97 kB / 455.9 MB, free: 1.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01731/0.3661, allocations: 6.12 MB / 462 MB, free: 11.53 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3662, allocations: 0 / 462 MB, free: 11.53 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.269e-05/0.3662, allocations: 4 kB / 462 MB, free: 11.52 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.001187/0.3674, allocations: 0.6016 MB / 462.6 MB, free: 10.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.3675, allocations: 12.03 kB / 462.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.3676, allocations: 40.47 kB / 462.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003503/0.368, allocations: 272.8 kB / 462.9 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.68e-05/0.3681, allocations: 80.62 kB / 463 MB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.578e-05/0.3682, allocations: 32.38 kB / 463 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005635/0.3687, allocations: 335.3 kB / 463.4 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.3688, allocations: 3.938 kB / 463.4 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.3688, allocations: 16 kB / 463.4 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.3688, allocations: 11.98 kB / 463.4 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004261/0.3693, allocations: 218.5 kB / 463.6 MB, free: 9.797 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002149/0.3714, allocations: 1.391 MB / 465 MB, free: 8.305 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.3718, allocations: 166.5 kB / 465.2 MB, free: 8.133 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.372, allocations: 96.86 kB / 465.3 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.372, allocations: 0 / 465.3 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003337/0.3723, allocations: 153.8 kB / 465.4 MB, free: 7.863 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.713e-06/0.3723, allocations: 0 / 465.4 MB, free: 7.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.001148/0.3735, allocations: 427 kB / 465.8 MB, free: 7.418 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.794e-05/0.3736, allocations: 106.8 kB / 465.9 MB, free: 7.289 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.3738, allocations: 258.7 kB / 466.2 MB, free: 7.031 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.3739, allocations: 29.7 kB / 466.2 MB, free: 6.996 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.374, allocations: 207.9 kB / 466.4 MB, free: 6.789 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.989e-05/0.3741, allocations: 67.09 kB / 466.5 MB, free: 6.723 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.442e-05/0.3741, allocations: 12 kB / 466.5 MB, free: 6.711 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.3743, allocations: 334.8 kB / 466.8 MB, free: 6.375 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.3745, allocations: 75.91 kB / 466.9 MB, free: 6.301 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.3747, allocations: 174.5 kB / 467.1 MB, free: 6.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.375, allocations: 218.6 kB / 467.3 MB, free: 5.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.3751, allocations: 4 kB / 467.3 MB, free: 5.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007052/0.3758, allocations: 328.2 kB / 467.6 MB, free: 5.516 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3758, allocations: 11.92 kB / 467.6 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.3758, allocations: 4 kB / 467.6 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002642/0.3761, allocations: 61.09 kB / 467.7 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.3764, allocations: 59.86 kB / 467.7 MB, free: 5.379 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.3777, allocations: 1.408 MB / 469.1 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.378, allocations: 51.77 kB / 469.2 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.378, allocations: 19.98 kB / 469.2 MB, free: 3.766 MB / 346.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.000169/0.3782, allocations: 145.8 kB / 469.4 MB, free: 3.613 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.3783, allocations: 23.72 kB / 469.4 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.773e-05/0.3783, allocations: 30.17 kB / 469.4 MB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3783, allocations: 4 kB / 469.4 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3783, allocations: 0 / 469.4 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.3783, allocations: 7.875 kB / 469.4 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003476/0.3787, allocations: 349.3 kB / 469.8 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.3787, allocations: 0 / 469.8 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.3789, allocations: 35.98 kB / 469.8 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001932/0.3791, allocations: 56.75 kB / 469.9 MB, free: 3.062 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.3791, allocations: 7.984 kB / 469.9 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/0.3803, allocations: 1.327 MB / 471.2 MB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3804, allocations: 0 / 471.2 MB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006956/0.3811, allocations: 358.2 kB / 471.5 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.3812, allocations: 120.7 kB / 471.7 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.69e-05/0.3812, allocations: 4 kB / 471.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.3814, allocations: 28.05 kB / 471.7 MB, free: 1.059 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3815, allocations: 31.94 kB / 471.7 MB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.3816, allocations: 4 kB / 471.7 MB, free: 1.023 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000165/0.3817, allocations: 186 kB / 471.9 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3817, allocations: 0 / 471.9 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004453/0.3822, allocations: 91.75 kB / 472 MB, free: 0.7539 MB / 346.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.0001903/0.3824, allocations: 111.2 kB / 472.1 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006674/0.3831, allocations: 310.9 kB / 472.4 MB, free: 324 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3831, allocations: 0 / 472.4 MB, free: 324 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.3835, allocations: 198.6 kB / 472.6 MB, free: 112 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.3838, allocations: 45.03 kB / 472.6 MB, free: 68 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.3859, allocations: 0.8382 MB / 473.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004576/0.3864, allocations: 0.7677 MB / 474.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000162/0.3865, allocations: 26.3 kB / 474.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.459e-05/0.3866, allocations: 23.42 kB / 474.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.3866, allocations: 0 / 474.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of Templates: time 0.008128/0.3948, allocations: 2.804 MB / 477.1 MB, free: 11.58 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches