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.001488/0.001488, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.00155/0.00155, allocations: 212 kB / 24.47 MB, free: 3.547 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.56/1.56, allocations: 207.7 MB / 235.3 MB, free: 9.797 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.001985/0.001985, allocations: 55.92 kB / 347.7 MB, free: 9.379 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2688, allocations: 49.15 MB / 396.9 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003703/0.2725, allocations: 2.854 MB / 399.7 MB, free: 7.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.2737, allocations: 0.7658 MB / 400.5 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.2739, allocations: 5.875 kB / 400.5 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001759/0.2741, allocations: 57.33 kB / 400.5 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001853/0.2742, allocations: 100.5 kB / 400.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003885/0.2746, allocations: 115.9 kB / 400.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004102/0.275, allocations: 427.7 kB / 401.2 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.2753, allocations: 96.69 kB / 401.3 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002264/0.2755, allocations: 166.6 kB / 401.4 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.2757, allocations: 154.1 kB / 401.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.659e-05/0.2758, allocations: 34.5 kB / 401.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.613e-05/0.2758, allocations: 35.25 kB / 401.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.414e-05/0.2759, allocations: 77.03 kB / 401.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.2761, allocations: 157.9 kB / 401.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000473/0.2766, allocations: 424.9 kB / 402.3 MB, free: 6.043 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.2766, allocations: 1.125 kB / 402.3 MB, free: 6.043 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2766, allocations: 4 kB / 402.3 MB, free: 6.039 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.2766, allocations: 0 / 402.3 MB, free: 6.039 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.0009885/0.2776, allocations: 0.5769 MB / 402.9 MB, free: 5.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.2776, allocations: 13.73 kB / 402.9 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.142e-05/0.2777, allocations: 48.31 kB / 402.9 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/0.278, allocations: 227.6 kB / 403.2 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.112e-05/0.2781, allocations: 132.2 kB / 403.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.381e-05/0.2782, allocations: 30.42 kB / 403.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005388/0.2787, allocations: 393 kB / 403.7 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.2787, allocations: 0 / 403.7 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.2787, allocations: 20.11 kB / 403.7 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.2787, allocations: 8.75 kB / 403.7 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004206/0.2792, allocations: 220 kB / 403.9 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.2807, allocations: 1.191 MB / 405.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.281, allocations: 150.8 kB / 405.3 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.2812, allocations: 80.09 kB / 405.4 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.2812, allocations: 2.734 kB / 405.4 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002559/0.2815, allocations: 217.4 kB / 405.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.2815, allocations: 1.031 kB / 405.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001059/0.2825, allocations: 322 kB / 405.9 MB, free: 3.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.2826, allocations: 113.7 kB / 406 MB, free: 3.449 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.2828, allocations: 241.6 kB / 406.2 MB, free: 3.301 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.2828, allocations: 31.58 kB / 406.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.732e-05/0.2829, allocations: 219.9 kB / 406.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.591e-05/0.2829, allocations: 66.55 kB / 406.5 MB, free: 3.031 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.648e-05/0.283, allocations: 70.88 kB / 406.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.396e-05/0.2831, allocations: 332.5 kB / 406.9 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.2833, allocations: 78.34 kB / 407 MB, free: 2.637 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.2835, allocations: 231.6 kB / 407.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003141/0.2838, allocations: 236.5 kB / 407.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2838, allocations: 1.375 kB / 407.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006054/0.2845, allocations: 337.3 kB / 407.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.2845, allocations: 9.438 kB / 407.8 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.383e-06/0.2845, allocations: 3.406 kB / 407.8 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002604/0.2847, allocations: 56.45 kB / 407.9 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002506/0.285, allocations: 64.23 kB / 407.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009703/0.286, allocations: 1.441 MB / 409.4 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.2862, allocations: 45.38 kB / 409.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.2862, allocations: 11.84 kB / 409.4 MB, free: 0.6484 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.0001205/0.2864, allocations: 147.8 kB / 409.6 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.492e-05/0.2864, allocations: 32.14 kB / 409.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.167e-05/0.2864, allocations: 26.47 kB / 409.6 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2864, allocations: 1.344 kB / 409.6 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2864, allocations: 8.531 kB / 409.6 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2864, allocations: 2.312 kB / 409.6 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.2867, allocations: 242.2 kB / 409.9 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2867, allocations: 4 kB / 409.9 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.2869, allocations: 38.7 kB / 409.9 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001697/0.287, allocations: 51.45 kB / 410 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.2871, allocations: 7.062 kB / 410 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.2882, allocations: 1.296 MB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2882, allocations: 1.188 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007127/0.2889, allocations: 354.6 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.341e-05/0.289, allocations: 36.91 kB / 411.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.542e-05/0.289, allocations: 6.516 kB / 411.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.2892, allocations: 18.72 kB / 411.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.972e-05/0.2893, allocations: 28.28 kB / 411.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.2893, allocations: 9.344 kB / 411.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001616/0.2895, allocations: 165.8 kB / 411.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2895, allocations: 0 / 411.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004182/0.2899, allocations: 93.8 kB / 412 MB, free: 14.63 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.0001532/0.2901, allocations: 108.9 kB / 412.1 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006284/0.2907, allocations: 301.5 kB / 412.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2907, allocations: 0 / 412.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003112/0.291, allocations: 193.7 kB / 412.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.2913, allocations: 32.09 kB / 412.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.2928, allocations: 0.6866 MB / 413.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001678/0.293, allocations: 168.5 kB / 413.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.2931, allocations: 23.86 kB / 413.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.365e-05/0.2932, allocations: 29.02 kB / 413.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2932, allocations: 0 / 413.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of Templates: time 0.008319/0.3015, allocations: 3.256 MB / 416.7 MB, free: 12.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/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: 4.9634863790124655]