Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001612/0.001612, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001689/0.001689, allocations: 184 kB / 23.72 MB, free: 4.711 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.511/1.511, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002585/0.002585, allocations: 55.91 kB / 370.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2848, allocations: 52.19 MB / 423.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004716/0.2896, allocations: 2.892 MB / 426 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.2911, allocations: 0.74 MB / 426.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002016/0.2913, allocations: 12 kB / 426.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.2915, allocations: 51.5 kB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.2918, allocations: 87.12 kB / 426.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.2921, allocations: 103.8 kB / 427 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000477/0.2926, allocations: 370.4 kB / 427.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.2928, allocations: 83.69 kB / 427.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.2931, allocations: 147.5 kB / 427.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002509/0.2933, allocations: 155.3 kB / 427.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.765e-05/0.2934, allocations: 32 kB / 427.8 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.542e-05/0.2934, allocations: 28 kB / 427.8 MB, free: 9.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.893e-05/0.2935, allocations: 71.77 kB / 427.9 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.2937, allocations: 163.2 kB / 428 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000466/0.2942, allocations: 367.8 kB / 428.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2942, allocations: 0 / 428.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2942, allocations: 0 / 428.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.2942, allocations: 0 / 428.4 MB, free: 9.379 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.00113/0.2953, allocations: 0.5378 MB / 428.9 MB, free: 8.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.2954, allocations: 15.97 kB / 429 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.512e-05/0.2955, allocations: 32.75 kB / 429 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.2959, allocations: 206.7 kB / 429.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.641e-05/0.296, allocations: 80.61 kB / 429.3 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.296, allocations: 32.38 kB / 429.3 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005469/0.2966, allocations: 294.1 kB / 429.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.2966, allocations: 3.938 kB / 429.6 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.867e-05/0.2966, allocations: 19.97 kB / 429.6 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.2966, allocations: 4 kB / 429.6 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000396/0.297, allocations: 194.5 kB / 429.8 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.2989, allocations: 1.089 MB / 430.9 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003361/0.2992, allocations: 142.6 kB / 431 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.2994, allocations: 72.88 kB / 431.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.2994, allocations: 8 kB / 431.1 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000292/0.2997, allocations: 159.8 kB / 431.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.2997, allocations: 0 / 431.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001125/0.3008, allocations: 308.1 kB / 431.6 MB, free: 6.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.387e-05/0.3009, allocations: 106.8 kB / 431.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002656/0.3012, allocations: 224.9 kB / 431.9 MB, free: 5.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.3012, allocations: 33.69 kB / 431.9 MB, free: 5.617 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.3014, allocations: 192.3 kB / 432.1 MB, free: 5.422 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.302e-05/0.3014, allocations: 63.5 kB / 432.2 MB, free: 5.359 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.3015, allocations: 65.69 kB / 432.2 MB, free: 5.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.3017, allocations: 330.8 kB / 432.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.3018, allocations: 67.97 kB / 432.6 MB, free: 4.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.3021, allocations: 145.4 kB / 432.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003112/0.3024, allocations: 193.3 kB / 433 MB, free: 4.504 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3024, allocations: 4 kB / 433 MB, free: 4.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005002/0.3029, allocations: 276.5 kB / 433.2 MB, free: 4.223 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.3029, allocations: 4 kB / 433.2 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3029, allocations: 7.938 kB / 433.2 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000286/0.3032, allocations: 53.03 kB / 433.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002332/0.3034, allocations: 51.92 kB / 433.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.305, allocations: 1.464 MB / 434.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.3052, allocations: 39.77 kB / 434.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.377e-05/0.3053, allocations: 16.09 kB / 434.9 MB, free: 2.473 MB / 334.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.0001931/0.3055, allocations: 153.7 kB / 435 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.457e-05/0.3055, allocations: 23.86 kB / 435 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.739e-05/0.3056, allocations: 22.28 kB / 435.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.3056, allocations: 0 / 435.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.3056, allocations: 0 / 435.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.3056, allocations: 7.984 kB / 435.1 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003753/0.306, allocations: 296.4 kB / 435.4 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.306, allocations: 0 / 435.4 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.3061, allocations: 31.98 kB / 435.4 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000206/0.3063, allocations: 56.75 kB / 435.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/0.3064, allocations: 8 kB / 435.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001326/0.3077, allocations: 1.311 MB / 436.8 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3077, allocations: 8.094 kB / 436.8 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00073/0.3084, allocations: 329 kB / 437.1 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.133e-05/0.3085, allocations: 35.78 kB / 437.1 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.994e-05/0.3085, allocations: 8 kB / 437.1 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.3088, allocations: 20.11 kB / 437.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.501e-05/0.3088, allocations: 27.89 kB / 437.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.3089, allocations: 7.984 kB / 437.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001626/0.309, allocations: 160.5 kB / 437.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.309, allocations: 0 / 437.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003848/0.3094, allocations: 87.78 kB / 437.4 MB, free: 15.72 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.0001267/0.3095, allocations: 109.4 kB / 437.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005802/0.3101, allocations: 282.4 kB / 437.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3101, allocations: 0 / 437.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003444/0.3105, allocations: 190.6 kB / 438 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.3108, allocations: 48.77 kB / 438 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.3125, allocations: 0.6557 MB / 438.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004016/0.3129, allocations: 0.7597 MB / 439.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.919e-05/0.313, allocations: 22.28 kB / 439.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.501e-05/0.313, allocations: 19.44 kB / 439.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.313, allocations: 4 kB / 439.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of Templates: time 0.008634/0.3217, allocations: 3.257 MB / 442.8 MB, free: 10.33 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.679000101052225]