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/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.002/0.002, allocations: 105.4 kB / 19.8 MB, free: 2.516 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.002524/0.002524, allocations: 210.4 kB / 22.99 MB, free: 5.609 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.48/1.48, allocations: 230.2 MB / 256.2 MB, free: 8.527 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,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=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 67.89 kB / 376.5 MB, free: 3.586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2689, allocations: 53.32 MB / 429.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004614/0.2736, allocations: 3.197 MB / 433 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.2752, allocations: 0.8256 MB / 433.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.2753, allocations: 4 kB / 433.8 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001899/0.2755, allocations: 67.42 kB / 433.9 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002067/0.2757, allocations: 99 kB / 434 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004199/0.2762, allocations: 123.8 kB / 434.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004582/0.2766, allocations: 418.2 kB / 434.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.2768, allocations: 99.75 kB / 434.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.2771, allocations: 175.3 kB / 434.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/0.2773, allocations: 171.2 kB / 435 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.155e-05/0.2774, allocations: 32 kB / 435 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.331e-05/0.2775, allocations: 47.98 kB / 435 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.139e-05/0.2775, allocations: 79.69 kB / 435.1 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.2777, allocations: 191.1 kB / 435.3 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004954/0.2782, allocations: 427.5 kB / 435.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2782, allocations: 0 / 435.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2782, allocations: 0 / 435.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.2782, allocations: 0 / 435.7 MB, free: 1.602 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001114/0.2793, allocations: 0.6661 MB / 436.4 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2794, allocations: 8.031 kB / 436.4 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001971/0.2796, allocations: 56.64 kB / 436.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.2799, allocations: 281.4 kB / 436.7 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.842e-05/0.28, allocations: 84.61 kB / 436.8 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.498e-05/0.2801, allocations: 32.38 kB / 436.8 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005767/0.2807, allocations: 338.8 kB / 437.2 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.2807, allocations: 4 kB / 437.2 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.2807, allocations: 8 kB / 437.2 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.2807, allocations: 12 kB / 437.2 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004494/0.2812, allocations: 222.5 kB / 437.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.2832, allocations: 1.364 MB / 438.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.2835, allocations: 158.5 kB / 438.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.2837, allocations: 88.75 kB / 439 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.2837, allocations: 0 / 439 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003146/0.284, allocations: 168.8 kB / 439.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.082e-06/0.284, allocations: 0 / 439.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001155/0.2852, allocations: 395.6 kB / 439.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.2853, allocations: 110.8 kB / 439.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.2856, allocations: 262.7 kB / 439.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.2856, allocations: 29.7 kB / 440 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.2858, allocations: 216.2 kB / 440.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.582e-05/0.2858, allocations: 79.36 kB / 440.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.2859, allocations: 58.03 kB / 440.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.2861, allocations: 334.8 kB / 440.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.2863, allocations: 76.61 kB / 440.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002543/0.2865, allocations: 181.5 kB / 440.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/0.2869, allocations: 239.6 kB / 441.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.2869, allocations: 3.938 kB / 441.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007064/0.2876, allocations: 356.3 kB / 441.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.2877, allocations: 4 kB / 441.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.2877, allocations: 4 kB / 441.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002867/0.2879, allocations: 60.97 kB / 441.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.2882, allocations: 63.89 kB / 441.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/0.2897, allocations: 1.568 MB / 443.2 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.29, allocations: 43.72 kB / 443.2 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.2901, allocations: 16 kB / 443.2 MB, free: 9.535 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001881/0.2903, allocations: 149.9 kB / 443.4 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.351e-05/0.2903, allocations: 23.86 kB / 443.4 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.165e-05/0.2904, allocations: 42.05 kB / 443.4 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2904, allocations: 0 / 443.4 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.2904, allocations: 4 kB / 443.4 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2904, allocations: 3.984 kB / 443.4 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003707/0.2907, allocations: 333.4 kB / 443.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2908, allocations: 4 kB / 443.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001916/0.2909, allocations: 35.97 kB / 443.8 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001958/0.2911, allocations: 60.75 kB / 443.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.2912, allocations: 0 / 443.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001282/0.2924, allocations: 1.418 MB / 445.3 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2924, allocations: 0 / 445.3 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007227/0.2932, allocations: 361 kB / 445.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.2933, allocations: 109 kB / 445.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.449e-05/0.2933, allocations: 11.98 kB / 445.8 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.2935, allocations: 20.05 kB / 445.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.25e-05/0.2936, allocations: 35.89 kB / 445.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.2936, allocations: 4 kB / 445.8 MB, free: 6.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002315/0.2938, allocations: 186 kB / 446 MB, free: 6.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2938, allocations: 0 / 446 MB, free: 6.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003957/0.2942, allocations: 95.77 kB / 446.1 MB, free: 6.422 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: 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 (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.0001709/0.2944, allocations: 107.8 kB / 446.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006447/0.295, allocations: 298.5 kB / 446.5 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.295, allocations: 0 / 446.5 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003155/0.2954, allocations: 206.4 kB / 446.7 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.2956, allocations: 33.17 kB / 446.7 MB, free: 5.754 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/0.2972, allocations: 0.6948 MB / 447.4 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.2975, allocations: 0.7675 MB / 448.2 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.2977, allocations: 30.27 kB / 448.2 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.776e-05/0.2977, allocations: 23.44 kB / 448.2 MB, free: 4.191 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2977, allocations: 0 / 448.2 MB, free: 4.191 MB / 350.1 MB Notification: Performance of Templates: time 0.008095/0.3058, allocations: 3.255 MB / 451.5 MB, free: 0.9609 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.854012828320265]