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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001393/0.001393, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001633/0.001633, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 230.5 MB / 257.4 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,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=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 63.84 kB / 378.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2606, allocations: 53.41 MB / 431.6 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00416/0.2648, allocations: 2.699 MB / 434.3 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.2662, allocations: 0.7323 MB / 435.1 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.2664, allocations: 4 kB / 435.1 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.2665, allocations: 59.44 kB / 435.1 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001766/0.2667, allocations: 87.19 kB / 435.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.267, allocations: 103.8 kB / 435.3 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004161/0.2674, allocations: 374.4 kB / 435.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.2676, allocations: 87.33 kB / 435.8 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.2678, allocations: 139.5 kB / 435.9 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.268, allocations: 135.3 kB / 436 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.857e-05/0.2681, allocations: 32 kB / 436.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.786e-05/0.2681, allocations: 28 kB / 436.1 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.133e-05/0.2682, allocations: 79.73 kB / 436.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.2683, allocations: 131.5 kB / 436.3 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003959/0.2687, allocations: 361.1 kB / 436.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.2687, allocations: 3.938 kB / 436.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2688, allocations: 4 kB / 436.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.2688, allocations: 0 / 436.7 MB, free: 1.492 MB / 334.1 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.001029/0.2698, allocations: 0.5417 MB / 437.2 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2698, allocations: 11.98 kB / 437.2 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.922e-05/0.2699, allocations: 40.7 kB / 437.3 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.2703, allocations: 206.7 kB / 437.5 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/0.2705, allocations: 128 kB / 437.6 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.94e-05/0.2705, allocations: 32.36 kB / 437.6 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005313/0.271, allocations: 361.4 kB / 438 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.2711, allocations: 3.938 kB / 438 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.05e-05/0.2711, allocations: 12 kB / 438 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2711, allocations: 4 kB / 438 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003815/0.2715, allocations: 186.6 kB / 438.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001643/0.2731, allocations: 0.9727 MB / 439.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.2734, allocations: 138.6 kB / 439.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.2736, allocations: 76.83 kB / 439.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.2736, allocations: 0 / 439.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003019/0.2739, allocations: 216.6 kB / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.914e-06/0.2739, allocations: 0 / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001242/0.2751, allocations: 298.5 kB / 439.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.2752, allocations: 114.8 kB / 440 MB, free: 13.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002947/0.2755, allocations: 207.8 kB / 440.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.981e-05/0.2756, allocations: 29.7 kB / 440.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.2758, allocations: 180.4 kB / 440.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.325e-05/0.2759, allocations: 75.41 kB / 440.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/0.276, allocations: 61.66 kB / 440.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.2762, allocations: 334.8 kB / 440.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.2764, allocations: 67.97 kB / 440.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.2766, allocations: 192.9 kB / 441.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003929/0.277, allocations: 192.2 kB / 441.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.277, allocations: 4 kB / 441.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006839/0.2777, allocations: 264.5 kB / 441.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.2778, allocations: 8 kB / 441.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.2778, allocations: 4.219 kB / 441.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/0.2781, allocations: 56.81 kB / 441.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003382/0.2785, allocations: 51.91 kB / 441.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00198/0.2805, allocations: 1.445 MB / 443.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003079/0.2808, allocations: 35.86 kB / 443.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.2808, allocations: 16 kB / 443.2 MB, free: 10.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002329/0.281, allocations: 152.7 kB / 443.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.259e-05/0.2811, allocations: 23.78 kB / 443.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.142e-05/0.2811, allocations: 30.05 kB / 443.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2811, allocations: 4 kB / 443.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.2812, allocations: 0 / 443.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2812, allocations: 0 / 443.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003837/0.2815, allocations: 217.2 kB / 443.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.2815, allocations: 4 kB / 443.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.2818, allocations: 35.92 kB / 443.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000243/0.282, allocations: 56.75 kB / 443.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.282, allocations: 7.984 kB / 443.7 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001552/0.2836, allocations: 1.288 MB / 445 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.2836, allocations: 4.031 kB / 445 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008716/0.2845, allocations: 329.2 kB / 445.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.2846, allocations: 35.8 kB / 445.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.2846, allocations: 4 kB / 445.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.2849, allocations: 19.98 kB / 445.4 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.285, allocations: 31.88 kB / 445.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.285, allocations: 8 kB / 445.4 MB, free: 8.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001899/0.2852, allocations: 149.4 kB / 445.5 MB, free: 8 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2852, allocations: 0 / 445.5 MB, free: 8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006286/0.2858, allocations: 83.95 kB / 445.6 MB, free: 7.918 MB / 350.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001552/0.286, allocations: 103.2 kB / 445.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007278/0.2867, allocations: 278.5 kB / 446 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2867, allocations: 0 / 446 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003743/0.2871, allocations: 198.5 kB / 446.2 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.2875, allocations: 40.14 kB / 446.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002115/0.2896, allocations: 0.6556 MB / 446.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001829/0.2898, allocations: 154.7 kB / 447 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.2899, allocations: 17.94 kB / 447 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.41e-05/0.2899, allocations: 23.44 kB / 447.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.2899, allocations: 0 / 447.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of Templates: time 0.009889/0.2998, allocations: 3.209 MB / 450.3 MB, free: 3.227 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.75753559358418]