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.001083/0.001083, allocations: 198.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.203/1.203, allocations: 227.2 MB / 245 MB, free: 7.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008445/0.0008445, allocations: 94.03 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002035/0.0002036, allocations: 4 kB / 357.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1737/0.1739, allocations: 51.47 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08584/0.2598, allocations: 80.24 MB / 489.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001688/0.26, allocations: 75.95 kB / 489.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01416/0.2742, allocations: 5.653 MB / 495.4 MB, free: 4.641 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2742, allocations: 0 / 495.4 MB, free: 4.641 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.765e-05/0.2743, allocations: 8 kB / 495.4 MB, free: 4.633 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008784/0.2751, allocations: 0.5722 MB / 496 MB, free: 4.012 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.2752, allocations: 8.031 kB / 496 MB, free: 4.004 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.911e-05/0.2753, allocations: 35.62 kB / 496 MB, free: 3.969 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003339/0.2756, allocations: 246.6 kB / 496.2 MB, free: 3.688 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.743e-05/0.2757, allocations: 80.02 kB / 496.3 MB, free: 3.598 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.2758, allocations: 32 kB / 496.4 MB, free: 3.566 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/0.2763, allocations: 293.7 kB / 496.6 MB, free: 3.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.2763, allocations: 0 / 496.6 MB, free: 3.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.076e-05/0.2763, allocations: 12 kB / 496.7 MB, free: 3.258 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.2763, allocations: 8 kB / 496.7 MB, free: 3.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.2767, allocations: 194.1 kB / 496.8 MB, free: 3.059 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001569/0.2783, allocations: 1.139 MB / 498 MB, free: 1.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002672/0.2786, allocations: 165 kB / 498.1 MB, free: 1.676 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.574e-05/0.2786, allocations: 0 / 498.1 MB, free: 1.676 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002535/0.2788, allocations: 154.8 kB / 498.3 MB, free: 1.504 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.964e-06/0.2788, allocations: 0 / 498.3 MB, free: 1.504 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.000981/0.2798, allocations: 401.6 kB / 498.7 MB, free: 1.086 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.2799, allocations: 110.8 kB / 498.8 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.2801, allocations: 200.1 kB / 499 MB, free: 0.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.2801, allocations: 33.7 kB / 499 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.892e-05/0.2802, allocations: 180.2 kB / 499.2 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.893e-05/0.2803, allocations: 63.09 kB / 499.3 MB, free: 480 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.133e-05/0.2803, allocations: 4 kB / 499.3 MB, free: 476 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2804, allocations: 334.8 kB / 499.6 MB, free: 132 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2805, allocations: 68.53 kB / 499.7 MB, free: 60 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.2807, allocations: 129.2 kB / 499.8 MB, free: 15.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001269/0.2808, allocations: 73.16 kB / 499.9 MB, free: 15.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.2809, allocations: 0 / 499.9 MB, free: 15.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003846/0.2812, allocations: 264.2 kB / 0.4884 GB, free: 15.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2813, allocations: 11.98 kB / 0.4884 GB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2813, allocations: 0 / 0.4884 GB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002466/0.2815, allocations: 60.77 kB / 0.4885 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.2817, allocations: 48.05 kB / 0.4885 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.2829, allocations: 1.408 MB / 0.4899 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.2831, allocations: 31.83 kB / 0.4899 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.2832, allocations: 15.94 kB / 0.4899 GB, free: 13.86 MB / 378.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 () * Number of clocked 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.000127/0.2833, allocations: 146 kB / 0.4901 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.2834, allocations: 27.67 kB / 0.4901 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.951e-05/0.2834, allocations: 34.17 kB / 0.4901 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2834, allocations: 0 / 0.4901 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.2834, allocations: 0 / 0.4901 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.2834, allocations: 0 / 0.4901 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00032/0.2838, allocations: 329.3 kB / 0.4904 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.2838, allocations: 4 kB / 0.4905 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.2839, allocations: 31.92 kB / 0.4905 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001896/0.2841, allocations: 60.77 kB / 0.4905 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.2842, allocations: 4 kB / 0.4905 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.2852, allocations: 1.327 MB / 0.4918 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2852, allocations: 0 / 0.4918 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005801/0.2858, allocations: 329.2 kB / 0.4922 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.2859, allocations: 112.8 kB / 0.4923 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.2859, allocations: 7.984 kB / 0.4923 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.2861, allocations: 19.98 kB / 0.4923 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.804e-05/0.2862, allocations: 35.95 kB / 0.4923 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.2862, allocations: 11.98 kB / 0.4923 GB, free: 11.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001335/0.2864, allocations: 156.5 kB / 0.4925 GB, free: 11.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2864, allocations: 0 / 0.4925 GB, free: 11.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003349/0.2867, allocations: 83.75 kB / 0.4926 GB, free: 10.94 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 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.0001544/0.2869, allocations: 115.2 kB / 0.4927 GB, free: 10.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004957/0.2874, allocations: 286.6 kB / 0.4929 GB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2874, allocations: 0 / 0.4929 GB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000291/0.2877, allocations: 190.6 kB / 0.4931 GB, free: 10.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.2879, allocations: 34.91 kB / 0.4932 GB, free: 10.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001514/0.2895, allocations: 0.8277 MB / 0.494 GB, free: 9.441 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.2898, allocations: 0.7635 MB / 0.4947 GB, free: 8.648 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000101/0.2899, allocations: 21.94 kB / 0.4947 GB, free: 8.629 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.53e-05/0.29, allocations: 23.44 kB / 0.4948 GB, free: 8.605 MB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.29, allocations: 3.938 kB / 0.4948 GB, free: 8.602 MB / 378.7 MB Notification: Performance of Templates: time 0.005779/0.2958, allocations: 2.735 MB / 0.4974 GB, free: 5.902 MB / 378.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