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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 43.92 kB / 370.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2749, allocations: 52.17 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004668/0.2796, allocations: 3.176 MB / 426.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.2811, allocations: 0.7594 MB / 427.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.2812, allocations: 4 kB / 427.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.2814, allocations: 59.44 kB / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.2816, allocations: 107 kB / 427.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003496/0.282, allocations: 111.7 kB / 427.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004366/0.2824, allocations: 418.2 kB / 427.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002085/0.2826, allocations: 100.3 kB / 427.8 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002209/0.2828, allocations: 167.4 kB / 428 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002291/0.2831, allocations: 175.2 kB / 428.2 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.791e-05/0.2831, allocations: 36 kB / 428.2 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.368e-05/0.2832, allocations: 36 kB / 428.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.959e-05/0.2833, allocations: 75.7 kB / 428.3 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002042/0.2835, allocations: 191.1 kB / 428.5 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004534/0.2839, allocations: 423.5 kB / 428.9 MB, free: 8.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2839, allocations: 0 / 428.9 MB, free: 8.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2839, allocations: 4 kB / 428.9 MB, free: 8.848 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.2839, allocations: 0 / 428.9 MB, free: 8.848 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.00112/0.2851, allocations: 0.587 MB / 429.5 MB, free: 8.227 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2851, allocations: 8.031 kB / 429.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.94e-05/0.2852, allocations: 40.7 kB / 429.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/0.2856, allocations: 223.5 kB / 429.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.944e-05/0.2857, allocations: 84.61 kB / 429.9 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.078e-05/0.2858, allocations: 32.38 kB / 429.9 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006204/0.2864, allocations: 338.8 kB / 430.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.2864, allocations: 0 / 430.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.987e-05/0.2865, allocations: 16 kB / 430.2 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.2865, allocations: 8 kB / 430.2 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004549/0.2869, allocations: 222.5 kB / 430.5 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.289, allocations: 1.306 MB / 431.8 MB, free: 5.824 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.2893, allocations: 162.2 kB / 431.9 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.2895, allocations: 84.77 kB / 432 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.2895, allocations: 3.984 kB / 432 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.2898, allocations: 159.9 kB / 432.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.352e-06/0.2898, allocations: 0 / 432.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001121/0.2909, allocations: 328.5 kB / 432.5 MB, free: 5.066 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.264e-05/0.291, allocations: 110.8 kB / 432.6 MB, free: 4.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002796/0.2913, allocations: 257.9 kB / 432.8 MB, free: 4.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.2913, allocations: 33.7 kB / 432.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.2915, allocations: 212.2 kB / 433.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.7e-05/0.2915, allocations: 79.38 kB / 433.2 MB, free: 4.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.807e-05/0.2916, allocations: 54.03 kB / 433.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.2918, allocations: 338.8 kB / 433.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.2919, allocations: 80.61 kB / 433.6 MB, free: 3.863 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002355/0.2922, allocations: 177.4 kB / 433.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003791/0.2926, allocations: 249.4 kB / 434 MB, free: 3.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2926, allocations: 0 / 434 MB, free: 3.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006971/0.2933, allocations: 348.5 kB / 434.4 MB, free: 3.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2933, allocations: 4 kB / 434.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2933, allocations: 4 kB / 434.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002763/0.2936, allocations: 48.81 kB / 434.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.2938, allocations: 76.06 kB / 434.5 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.2953, allocations: 1.465 MB / 436 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002554/0.2955, allocations: 47.7 kB / 436 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.2956, allocations: 16 kB / 436 MB, free: 1.25 MB / 334.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.0001634/0.2957, allocations: 161.7 kB / 436.2 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.097e-05/0.2958, allocations: 23.86 kB / 436.2 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.592e-05/0.2958, allocations: 34.2 kB / 436.3 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.2958, allocations: 0 / 436.3 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.2958, allocations: 0 / 436.3 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.2958, allocations: 4 kB / 436.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003471/0.2962, allocations: 312.5 kB / 436.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2962, allocations: 0 / 436.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.2964, allocations: 39.98 kB / 436.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001922/0.2966, allocations: 52.75 kB / 436.7 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.2966, allocations: 11.98 kB / 436.7 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/0.2978, allocations: 1.311 MB / 438 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2978, allocations: 0 / 438 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007556/0.2986, allocations: 360.4 kB / 438.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.445e-05/0.2987, allocations: 39.8 kB / 438.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.2987, allocations: 8 kB / 438.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001813/0.2989, allocations: 19.98 kB / 438.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.299, allocations: 35.94 kB / 438.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.299, allocations: 8 kB / 438.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001827/0.2992, allocations: 185.2 kB / 438.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2992, allocations: 0 / 438.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003943/0.2996, allocations: 87.84 kB / 438.7 MB, free: 14.39 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.000129/0.2997, allocations: 107.1 kB / 438.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000616/0.3003, allocations: 306.5 kB / 439.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3003, allocations: 0 / 439.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003064/0.3006, allocations: 194.5 kB / 439.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.3009, allocations: 36.48 kB / 439.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.3024, allocations: 0.6843 MB / 440 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.3027, allocations: 0.7714 MB / 440.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.3028, allocations: 30.27 kB / 440.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.105e-05/0.3029, allocations: 23.44 kB / 440.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3029, allocations: 0 / 440.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of Templates: time 0.007996/0.3109, allocations: 3.327 MB / 444.2 MB, free: 8.867 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.780808761715889]