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: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009646/0.0009643, allocations: 175.1 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.253/1.253, allocations: 221.4 MB / 235.5 MB, free: 2.898 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.0008021/0.0008021, allocations: 87.62 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.254e-05/2.256e-05, allocations: 4 kB / 343.8 MB, free: 4.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08504/0.08508, allocations: 50.41 MB / 394.2 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2681/0.3532, allocations: 80.31 MB / 474.6 MB, free: 7.238 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.3535, allocations: 71.8 kB / 474.6 MB, free: 7.172 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0173/0.3708, allocations: 6.332 MB / 481 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3708, allocations: 0 / 481 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.3708, allocations: 8 kB / 481 MB, free: 0.8047 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.0007837/0.3716, allocations: 0.5824 MB / 481.5 MB, free: 180 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3717, allocations: 8.031 kB / 481.6 MB, free: 172 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.566e-05/0.3717, allocations: 43.53 kB / 481.6 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002943/0.372, allocations: 263.5 kB / 481.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.616e-05/0.3721, allocations: 84.53 kB / 481.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.207e-05/0.3722, allocations: 31.95 kB / 482 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005075/0.3727, allocations: 320.7 kB / 482.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.3727, allocations: 0 / 482.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.445e-05/0.3728, allocations: 16 kB / 482.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.3728, allocations: 8 kB / 482.3 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003502/0.3731, allocations: 203 kB / 482.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.3749, allocations: 1.388 MB / 483.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002733/0.3752, allocations: 162.6 kB / 484 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.3753, allocations: 81.19 kB / 484.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.3753, allocations: 3.953 kB / 484.1 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.3756, allocations: 158.4 kB / 484.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 2.816e-06/0.3756, allocations: 0 / 484.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005437/0.3762, allocations: 224.3 kB / 484.5 MB, free: 13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.595e-05/0.3762, allocations: 106.8 kB / 484.6 MB, free: 12.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.3765, allocations: 227.1 kB / 484.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.3765, allocations: 37.69 kB / 484.9 MB, free: 12.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.3766, allocations: 203.7 kB / 485.1 MB, free: 12.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.328e-05/0.3767, allocations: 71 kB / 485.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.665e-05/0.3767, allocations: 8 kB / 485.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3768, allocations: 330.8 kB / 485.5 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.3769, allocations: 68 kB / 485.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.3771, allocations: 162.4 kB / 485.7 MB, free: 11.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.3773, allocations: 77.19 kB / 485.8 MB, free: 11.65 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3773, allocations: 0 / 485.8 MB, free: 11.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005833/0.3779, allocations: 324.5 kB / 486.1 MB, free: 11.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3779, allocations: 4 kB / 486.1 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.3779, allocations: 4 kB / 486.1 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002377/0.3781, allocations: 56.97 kB / 486.1 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.3784, allocations: 63.91 kB / 486.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.3795, allocations: 1.405 MB / 487.6 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.3797, allocations: 47.77 kB / 487.7 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.3798, allocations: 19.95 kB / 487.7 MB, free: 9.578 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 8.436e-05/0.3799, allocations: 120.9 kB / 487.8 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.355e-05/0.3799, allocations: 23.72 kB / 487.8 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.953e-05/0.38, allocations: 37.94 kB / 487.9 MB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.38, allocations: 0 / 487.9 MB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.38, allocations: 0 / 487.9 MB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.38, allocations: 7.984 kB / 487.9 MB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003477/0.3803, allocations: 345.2 kB / 488.2 MB, free: 9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.3804, allocations: 0 / 488.2 MB, free: 9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.3806, allocations: 43.91 kB / 488.2 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000177/0.3807, allocations: 48.83 kB / 488.3 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.3808, allocations: 7.984 kB / 488.3 MB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.3818, allocations: 1.319 MB / 489.6 MB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3818, allocations: 0 / 489.6 MB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006112/0.3825, allocations: 340.8 kB / 490 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.3826, allocations: 116.8 kB / 490.1 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.548e-05/0.3826, allocations: 12.14 kB / 490.1 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.3828, allocations: 23.98 kB / 490.1 MB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.349e-05/0.3829, allocations: 27.95 kB / 490.1 MB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.3829, allocations: 7.984 kB / 490.1 MB, free: 6.891 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001632/0.3831, allocations: 183.1 kB / 490.3 MB, free: 6.715 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3831, allocations: 0 / 490.3 MB, free: 6.715 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003462/0.3834, allocations: 87.78 kB / 490.4 MB, free: 6.629 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.0001491/0.3836, allocations: 115.1 kB / 490.5 MB, free: 6.508 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005086/0.3841, allocations: 298.4 kB / 490.8 MB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3841, allocations: 0 / 490.8 MB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002532/0.3844, allocations: 191.2 kB / 491 MB, free: 6.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002247/0.3846, allocations: 32.55 kB / 491 MB, free: 5.973 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.3859, allocations: 0.4883 MB / 491.5 MB, free: 5.465 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.3863, allocations: 0.7755 MB / 492.3 MB, free: 4.664 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001212/0.3864, allocations: 30.05 kB / 492.3 MB, free: 4.637 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.828e-05/0.3865, allocations: 23.44 kB / 492.3 MB, free: 4.613 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3865, allocations: 0 / 492.3 MB, free: 4.613 MB / 362.7 MB Notification: Performance of Templates: time 0.006209/0.3927, allocations: 2.783 MB / 495.1 MB, free: 1.863 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches