Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001276/0.001276, allocations: 115.6 kB / 20.43 MB, free: 1.465 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.001647/0.001647, allocations: 212 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.529/1.529, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002238/0.002238, allocations: 47.92 kB / 378.3 MB, free: 2.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2781, allocations: 53.36 MB / 431.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004871/0.283, allocations: 3.192 MB / 434.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.2845, allocations: 0.8178 MB / 435.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.2847, allocations: 11.94 kB / 435.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.2849, allocations: 59.42 kB / 435.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.2851, allocations: 103 kB / 435.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004277/0.2855, allocations: 127.7 kB / 435.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004799/0.286, allocations: 414.2 kB / 436.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.2862, allocations: 100.3 kB / 436.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002973/0.2865, allocations: 171.4 kB / 436.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002488/0.2868, allocations: 183.2 kB / 436.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.108e-05/0.2869, allocations: 36 kB / 436.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.543e-05/0.2869, allocations: 36 kB / 436.9 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.809e-05/0.287, allocations: 83.69 kB / 436.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.2872, allocations: 191.1 kB / 437.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004955/0.2877, allocations: 427.5 kB / 437.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2877, allocations: 0 / 437.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2877, allocations: 0 / 437.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.2877, allocations: 3.938 kB / 437.6 MB, free: 0.9688 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.001081/0.2888, allocations: 0.587 MB / 438.1 MB, free: 356 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.2888, allocations: 15.97 kB / 438.2 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.289, allocations: 48.66 kB / 438.2 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/0.2895, allocations: 231.5 kB / 438.4 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.2896, allocations: 136 kB / 438.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.85e-05/0.2897, allocations: 32.36 kB / 438.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005893/0.2903, allocations: 338.9 kB / 438.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.2903, allocations: 0 / 438.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/0.2903, allocations: 16 kB / 438.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.2903, allocations: 8 kB / 439 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004504/0.2908, allocations: 226.5 kB / 439.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00198/0.2928, allocations: 1.306 MB / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.2931, allocations: 166.5 kB / 440.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.2933, allocations: 84.77 kB / 440.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.2933, allocations: 7.984 kB / 440.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002906/0.2936, allocations: 149.9 kB / 440.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.2936, allocations: 4 kB / 440.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001158/0.2948, allocations: 332.3 kB / 441.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.605e-05/0.2949, allocations: 110.8 kB / 441.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002887/0.2952, allocations: 269.8 kB / 441.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.2952, allocations: 25.7 kB / 441.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.2953, allocations: 212.3 kB / 441.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.267e-05/0.2954, allocations: 75.38 kB / 441.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.553e-05/0.2955, allocations: 58.03 kB / 441.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2957, allocations: 338.8 kB / 442.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.2958, allocations: 76.61 kB / 442.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002442/0.2961, allocations: 177.5 kB / 442.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003786/0.2965, allocations: 239.6 kB / 442.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2965, allocations: 0 / 442.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006988/0.2972, allocations: 340.5 kB / 443.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.2972, allocations: 8 kB / 443.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2972, allocations: 7.938 kB / 443.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002796/0.2975, allocations: 56.91 kB / 443.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.2977, allocations: 63.91 kB / 443.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/0.2992, allocations: 1.472 MB / 444.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000264/0.2995, allocations: 55.7 kB / 444.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.2995, allocations: 8 kB / 444.8 MB, free: 9.277 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.0001768/0.2997, allocations: 153.9 kB / 444.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.536e-05/0.2997, allocations: 23.86 kB / 444.9 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.915e-05/0.2998, allocations: 34.2 kB / 445 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2998, allocations: 4 kB / 445 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.2998, allocations: 0 / 445 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2998, allocations: 0 / 445 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003661/0.3002, allocations: 316.4 kB / 445.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3002, allocations: 0 / 445.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002008/0.3004, allocations: 43.92 kB / 445.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001919/0.3006, allocations: 52.75 kB / 445.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.3006, allocations: 11.98 kB / 445.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/0.3019, allocations: 1.311 MB / 446.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3019, allocations: 0 / 446.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007356/0.3026, allocations: 356.1 kB / 447 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.529e-05/0.3027, allocations: 39.8 kB / 447.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.941e-05/0.3028, allocations: 8 kB / 447.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.3029, allocations: 19.98 kB / 447.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.67e-05/0.303, allocations: 35.94 kB / 447.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.3031, allocations: 4 kB / 447.1 MB, free: 6.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001856/0.3032, allocations: 189.2 kB / 447.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3032, allocations: 0 / 447.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003885/0.3036, allocations: 91.78 kB / 447.4 MB, free: 6.418 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.0001373/0.3038, allocations: 103.2 kB / 447.5 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006266/0.3044, allocations: 306.4 kB / 447.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3044, allocations: 0 / 447.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003108/0.3047, allocations: 194.5 kB / 448 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.305, allocations: 41.05 kB / 448 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.3065, allocations: 0.6844 MB / 448.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.307, allocations: 0.7714 MB / 449.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.3071, allocations: 26.27 kB / 449.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.069e-05/0.3071, allocations: 27.44 kB / 449.6 MB, free: 4.191 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3071, allocations: 0 / 449.6 MB, free: 4.191 MB / 350.1 MB Notification: Performance of Templates: time 0.008127/0.3152, allocations: 3.325 MB / 452.9 MB, free: 0.8906 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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.880631816806272]