Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001906/0.001906, allocations: 102.4 kB / 21.93 MB, free: 5.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002232/0.002232, allocations: 202.7 kB / 25.22 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 207.7 MB / 236.1 MB, free: 9.766 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 58.52 kB / 348.5 MB, free: 9.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2756, allocations: 49.14 MB / 397.6 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005001/0.2806, allocations: 2.858 MB / 400.5 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.2824, allocations: 0.7672 MB / 401.2 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002945/0.2827, allocations: 6.531 kB / 401.2 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002288/0.283, allocations: 55.58 kB / 401.3 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000249/0.2832, allocations: 105 kB / 401.4 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004452/0.2837, allocations: 115.8 kB / 401.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.2841, allocations: 415.9 kB / 401.9 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002397/0.2843, allocations: 94.72 kB / 402 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002768/0.2846, allocations: 171.6 kB / 402.2 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.2849, allocations: 154.8 kB / 402.3 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.01e-05/0.2849, allocations: 34.88 kB / 402.4 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.418e-05/0.285, allocations: 34.81 kB / 402.4 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.968e-05/0.2851, allocations: 84.47 kB / 402.5 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.2853, allocations: 155.4 kB / 402.6 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005011/0.2858, allocations: 425 kB / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.2858, allocations: 5.125 kB / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.2858, allocations: 0 / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.2858, allocations: 0 / 403 MB, free: 6 MB / 318.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.001039/0.2868, allocations: 0.5811 MB / 403.6 MB, free: 5.566 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.2869, allocations: 14.06 kB / 403.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.758e-05/0.287, allocations: 45.97 kB / 403.7 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.2874, allocations: 219 kB / 403.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.873e-05/0.2875, allocations: 132.4 kB / 404 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.964e-05/0.2876, allocations: 28.34 kB / 404.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006053/0.2882, allocations: 399.2 kB / 404.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.2882, allocations: 1.156 kB / 404.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.261e-05/0.2882, allocations: 15.19 kB / 404.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.2882, allocations: 12.25 kB / 404.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004454/0.2887, allocations: 216.4 kB / 404.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.2904, allocations: 1.184 MB / 405.9 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003513/0.2907, allocations: 156.8 kB / 406 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.2909, allocations: 89.2 kB / 406.1 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.2909, allocations: 2.281 kB / 406.1 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003085/0.2912, allocations: 216.6 kB / 406.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.2912, allocations: 1.719 kB / 406.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001074/0.2923, allocations: 320.2 kB / 406.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.2924, allocations: 111 kB / 406.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.2926, allocations: 241.4 kB / 407 MB, free: 3.266 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.2926, allocations: 27.69 kB / 407 MB, free: 3.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.2927, allocations: 219.9 kB / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5e-05/0.2928, allocations: 67.36 kB / 407.3 MB, free: 3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.6e-05/0.2929, allocations: 65.86 kB / 407.4 MB, free: 2.957 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.171e-05/0.293, allocations: 331.6 kB / 407.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.2931, allocations: 87.92 kB / 407.8 MB, free: 2.602 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000245/0.2934, allocations: 231.5 kB / 408 MB, free: 2.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003236/0.2937, allocations: 244.1 kB / 408.2 MB, free: 2.211 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.2937, allocations: 0.8125 kB / 408.2 MB, free: 2.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007331/0.2944, allocations: 337 kB / 408.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.2944, allocations: 10.69 kB / 408.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.2945, allocations: 2.922 kB / 408.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003059/0.2948, allocations: 51.34 kB / 408.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002937/0.2951, allocations: 64.38 kB / 408.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.2962, allocations: 1.438 MB / 410.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/0.2965, allocations: 45.38 kB / 410.2 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.2965, allocations: 10.45 kB / 410.2 MB, free: 0.6133 MB / 318.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.000153/0.2966, allocations: 156.1 kB / 410.3 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.919e-05/0.2967, allocations: 24.14 kB / 410.3 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.819e-05/0.2967, allocations: 31.08 kB / 410.4 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2967, allocations: 2.312 kB / 410.4 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2967, allocations: 5.188 kB / 410.4 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2967, allocations: 1.359 kB / 410.4 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002629/0.297, allocations: 238.2 kB / 410.6 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.297, allocations: 1.219 kB / 410.6 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.2972, allocations: 33.23 kB / 410.7 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001745/0.2973, allocations: 56.33 kB / 410.7 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.2974, allocations: 2.547 kB / 410.7 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.2986, allocations: 1.311 MB / 412 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.2986, allocations: 2.312 kB / 412 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007585/0.2994, allocations: 355 kB / 412.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.2995, allocations: 34.62 kB / 412.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.2995, allocations: 2.75 kB / 412.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.2997, allocations: 20.59 kB / 412.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.959e-05/0.2998, allocations: 31.97 kB / 412.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.2998, allocations: 10.23 kB / 412.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001834/0.3, allocations: 164.4 kB / 412.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3, allocations: 0 / 412.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004341/0.3004, allocations: 93.19 kB / 412.7 MB, free: 14.59 MB / 334.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.000144/0.3005, allocations: 106.7 kB / 412.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006717/0.3012, allocations: 307.6 kB / 413.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3012, allocations: 1.156 kB / 413.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003307/0.3015, allocations: 192 kB / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.3018, allocations: 32.08 kB / 413.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.3035, allocations: 0.7117 MB / 414.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001877/0.3037, allocations: 165.1 kB / 414.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.391e-05/0.3038, allocations: 23.44 kB / 414.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3038, allocations: 0 / 414.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of Templates: time 0.008006/0.3118, allocations: 4.681 MB / 418.9 MB, free: 11.29 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 7.801513895858079]