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.00216/0.00216, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002344/0.002344, allocations: 208.5 kB / 23.73 MB, free: 4.387 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.603/1.603, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001615/0.001615, allocations: 43.92 kB / 378.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2637, allocations: 53.37 MB / 431.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.0049/0.2686, allocations: 2.922 MB / 434.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.2704, allocations: 0.775 MB / 435.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002675/0.2706, allocations: 8 kB / 435.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002307/0.2709, allocations: 63.36 kB / 435.4 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003178/0.2712, allocations: 111 kB / 435.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004702/0.2717, allocations: 123.8 kB / 435.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005429/0.2722, allocations: 422.1 kB / 436 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.2724, allocations: 102.9 kB / 436.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003179/0.2727, allocations: 167.5 kB / 436.3 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002806/0.273, allocations: 175.2 kB / 436.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.327e-05/0.2731, allocations: 36 kB / 436.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.476e-05/0.2732, allocations: 40 kB / 436.5 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.556e-05/0.2733, allocations: 79.75 kB / 436.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.2735, allocations: 159.2 kB / 436.7 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005564/0.274, allocations: 434 kB / 437.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.274, allocations: 0 / 437.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.274, allocations: 0 / 437.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.274, allocations: 0 / 437.2 MB, free: 1.102 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.001209/0.2753, allocations: 0.5831 MB / 437.7 MB, free: 496 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.2753, allocations: 12.03 kB / 437.8 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002174/0.2755, allocations: 56.62 kB / 437.8 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004552/0.276, allocations: 227.5 kB / 438 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.2761, allocations: 132 kB / 438.2 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.641e-05/0.2762, allocations: 32.42 kB / 438.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007806/0.277, allocations: 398.1 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.277, allocations: 4 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.416e-05/0.277, allocations: 12 kB / 438.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.277, allocations: 8 kB / 438.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.2775, allocations: 222.5 kB / 438.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002217/0.2797, allocations: 1.186 MB / 440 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.2801, allocations: 162.5 kB / 440.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001864/0.2803, allocations: 87.39 kB / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.2803, allocations: 4 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000383/0.2807, allocations: 217.2 kB / 440.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.452e-06/0.2807, allocations: 0 / 440.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001307/0.282, allocations: 326.5 kB / 440.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.2821, allocations: 114.7 kB / 440.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003326/0.2824, allocations: 245 kB / 441.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.2825, allocations: 25.7 kB / 441.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.2827, allocations: 216.2 kB / 441.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.681e-05/0.2828, allocations: 63.48 kB / 441.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.2829, allocations: 65.98 kB / 441.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.2831, allocations: 338.8 kB / 441.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.2833, allocations: 76.62 kB / 441.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003071/0.2836, allocations: 232.9 kB / 442.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004022/0.284, allocations: 235.6 kB / 442.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.284, allocations: 0 / 442.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007737/0.2848, allocations: 336.3 kB / 442.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.2848, allocations: 12.28 kB / 442.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.2848, allocations: 8 kB / 442.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002953/0.2851, allocations: 48.81 kB / 442.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.2854, allocations: 67.91 kB / 442.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00189/0.2872, allocations: 1.441 MB / 444.3 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003037/0.2875, allocations: 47.77 kB / 444.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.264e-05/0.2876, allocations: 11.94 kB / 444.3 MB, free: 9.43 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.0002599/0.2878, allocations: 149.7 kB / 444.5 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.96e-05/0.2879, allocations: 35.94 kB / 444.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.888e-05/0.288, allocations: 30.27 kB / 444.5 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.288, allocations: 3.938 kB / 444.5 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.288, allocations: 3.938 kB / 444.5 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.288, allocations: 4 kB / 444.6 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004367/0.2884, allocations: 229.2 kB / 444.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.2884, allocations: 4 kB / 444.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.2886, allocations: 35.98 kB / 444.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002395/0.2889, allocations: 52.81 kB / 444.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.2889, allocations: 11.98 kB / 444.9 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/0.2905, allocations: 1.295 MB / 446.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2905, allocations: 4.156 kB / 446.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007912/0.2913, allocations: 351.5 kB / 446.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.2914, allocations: 39.8 kB / 446.6 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.234e-05/0.2914, allocations: 4 kB / 446.6 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.2916, allocations: 15.98 kB / 446.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.632e-05/0.2917, allocations: 35.94 kB / 446.6 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.2917, allocations: 8.062 kB / 446.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001948/0.2919, allocations: 164.5 kB / 446.8 MB, free: 6.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2919, allocations: 0 / 446.8 MB, free: 6.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004293/0.2924, allocations: 95.78 kB / 446.9 MB, free: 6.715 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.000152/0.2925, allocations: 111.2 kB / 447 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007128/0.2932, allocations: 308.7 kB / 447.3 MB, free: 6.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2932, allocations: 4.062 kB / 447.3 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003567/0.2936, allocations: 194.5 kB / 447.5 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.2939, allocations: 28.42 kB / 447.5 MB, free: 6.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.2957, allocations: 0.6843 MB / 448.2 MB, free: 5.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/0.2958, allocations: 164.8 kB / 448.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.2959, allocations: 26.28 kB / 448.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.157e-05/0.296, allocations: 19.44 kB / 448.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.296, allocations: 0 / 448.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of Templates: time 0.009583/0.3056, allocations: 3.34 MB / 451.7 MB, free: 1.824 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: 5.032832597848028]