Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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.0008357/0.0008357, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004932/0.004932, allocations: 160.3 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.846/0.846, allocations: 177.1 MB / 205 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2549/0.2549, allocations: 34.25 MB / 295.7 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 443.4 MB, free: 1.164 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.126e-05/3.34e-05, allocations: 4.109 kB / 443.4 MB, free: 1.16 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.1937/0.1938, allocations: 2.723 MB / 446.1 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009048/0.1947, allocations: 0.6584 MB / 446.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.1948, allocations: 9.906 kB / 446.8 MB, free: 42.9 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.1949, allocations: 56.25 kB / 446.9 MB, free: 42.87 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.195, allocations: 92.19 kB / 447 MB, free: 42.8 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001545/0.1952, allocations: 100.2 kB / 447.1 MB, free: 42.8 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003316/0.1955, allocations: 420.8 kB / 447.5 MB, free: 42.66 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.1957, allocations: 80.92 kB / 447.5 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.1959, allocations: 229.6 kB / 447.8 MB, free: 42.53 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.196, allocations: 117.8 kB / 447.9 MB, free: 42.49 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.503e-05/0.196, allocations: 39.62 kB / 447.9 MB, free: 42.49 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.862e-05/0.1961, allocations: 32.44 kB / 448 MB, free: 42.49 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.71e-05/0.1961, allocations: 77.05 kB / 448 MB, free: 42.44 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.246e-05/0.1962, allocations: 123.7 kB / 448.2 MB, free: 42.38 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.1965, allocations: 405 kB / 448.5 MB, free: 42.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1965, allocations: 0 / 448.5 MB, free: 42.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1965, allocations: 0 / 448.5 MB, free: 42.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.1965, allocations: 0 / 448.5 MB, free: 42.23 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0006359/0.1971, allocations: 0.5551 MB / 449.1 MB, free: 41.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1971, allocations: 12.25 kB / 449.1 MB, free: 41.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.45e-05/0.1972, allocations: 37.83 kB / 449.2 MB, free: 41.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002924/0.1975, allocations: 222.1 kB / 449.4 MB, free: 41.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.1975, allocations: 24.16 kB / 449.4 MB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.1975, allocations: 25.38 kB / 449.4 MB, free: 41.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003628/0.1979, allocations: 430.2 kB / 449.8 MB, free: 41.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.1979, allocations: 4.125 kB / 449.8 MB, free: 41.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.1979, allocations: 14.12 kB / 449.9 MB, free: 41.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1979, allocations: 13.78 kB / 449.9 MB, free: 41.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000267/0.1982, allocations: 238 kB / 450.1 MB, free: 41.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.1993, allocations: 1.083 MB / 451.2 MB, free: 40.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003994/0.1997, allocations: 288 kB / 451.5 MB, free: 40.37 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.1999, allocations: 137 kB / 451.6 MB, free: 40.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.1999, allocations: 7.109 kB / 451.6 MB, free: 40.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/0.1999, allocations: 41.61 kB / 451.6 MB, free: 40.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.1999, allocations: 0 / 451.6 MB, free: 40.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.001415/0.2013, allocations: 0.8548 MB / 452.5 MB, free: 40.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.206e-05/0.2013, allocations: 54.34 kB / 452.6 MB, free: 39.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.2015, allocations: 223.8 kB / 452.8 MB, free: 39.85 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.2015, allocations: 29.7 kB / 452.8 MB, free: 39.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.591e-05/0.2015, allocations: 172.9 kB / 453 MB, free: 39.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.09e-05/0.2016, allocations: 93.08 kB / 453.1 MB, free: 39.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.452e-05/0.2016, allocations: 56.77 kB / 453.1 MB, free: 39.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.971e-05/0.2017, allocations: 332.5 kB / 453.4 MB, free: 39.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.2018, allocations: 102.5 kB / 453.5 MB, free: 39.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.2019, allocations: 150.3 kB / 453.7 MB, free: 39.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002461/0.2022, allocations: 253.8 kB / 453.9 MB, free: 38.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.2022, allocations: 0 / 453.9 MB, free: 38.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005523/0.2027, allocations: 488.7 kB / 454.4 MB, free: 38.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.2027, allocations: 6.906 kB / 454.4 MB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.2027, allocations: 2.75 kB / 454.4 MB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004814/0.2032, allocations: 235.2 kB / 454.7 MB, free: 38.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.865e-05/0.2033, allocations: 34.88 kB / 454.7 MB, free: 38.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001889/0.2052, allocations: 3.404 MB / 458.1 MB, free: 35.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.316e-05/0.2053, allocations: 34.44 kB / 458.1 MB, free: 35.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.2053, allocations: 12.09 kB / 458.1 MB, free: 35.89 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.077e-05/0.2054, allocations: 137.4 kB / 458.3 MB, free: 35.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.2054, allocations: 29.92 kB / 458.3 MB, free: 35.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.342e-05/0.2054, allocations: 32.69 kB / 458.3 MB, free: 35.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.2054, allocations: 2.812 kB / 458.3 MB, free: 35.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2054, allocations: 2.938 kB / 458.3 MB, free: 35.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.2054, allocations: 4.062 kB / 458.3 MB, free: 35.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007713/0.2062, allocations: 0.7777 MB / 459.1 MB, free: 35.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2062, allocations: 7.875 kB / 459.1 MB, free: 35.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.059e-05/0.2062, allocations: 18.09 kB / 459.1 MB, free: 35.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004037/0.2066, allocations: 235 kB / 459.4 MB, free: 35.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.2066, allocations: 4 kB / 459.4 MB, free: 35.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/0.2084, allocations: 3.408 MB / 462.8 MB, free: 32.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2084, allocations: 0 / 462.8 MB, free: 32.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005157/0.2089, allocations: 0.5223 MB / 463.3 MB, free: 32.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.409e-05/0.209, allocations: 44.48 kB / 463.4 MB, free: 32.08 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.209, allocations: 7.219 kB / 463.4 MB, free: 32.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.2091, allocations: 26.8 kB / 463.4 MB, free: 32.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.714e-05/0.2092, allocations: 38.12 kB / 463.4 MB, free: 32.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.2092, allocations: 7.25 kB / 463.4 MB, free: 32.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.111e-05/0.2092, allocations: 162.8 kB / 463.6 MB, free: 31.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2092, allocations: 0 / 463.6 MB, free: 31.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000253/0.2095, allocations: 110.7 kB / 463.7 MB, free: 31.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.333e-05/0.2096, allocations: 99.34 kB / 463.8 MB, free: 31.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005369/0.2101, allocations: 0.5365 MB / 464.3 MB, free: 31.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2101, allocations: 0 / 464.3 MB, free: 31.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.2104, allocations: 433.5 kB / 464.8 MB, free: 31.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.2106, allocations: 35.5 kB / 464.8 MB, free: 31.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006129/0.2113, allocations: 0.5175 MB / 465.3 MB, free: 30.85 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.47e-05/0.2113, allocations: 163.6 kB / 465.5 MB, free: 30.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.032e-05/0.2114, allocations: 20.97 kB / 465.5 MB, free: 30.76 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.2114, allocations: 4 kB / 465.5 MB, free: 30.75 MB / 410.7 MB Notification: Performance of Templates: time 0.004459/0.2158, allocations: 5.551 MB / 471 MB, free: 30.39 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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.1001275619491935]