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.001316/0.001316, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.001419/0.001419, allocations: 207.5 kB / 24.48 MB, free: 3.695 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.478/1.478, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.2445/0.2445, allocations: 46.97 MB / 361.6 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 179] 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 0.00198/0.00198, allocations: 67.91 kB / 0.4973 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3405, allocations: 66.04 MB / 0.5618 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004337/0.3449, allocations: 2.708 MB / 0.5645 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.3462, allocations: 0.6571 MB / 0.5651 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.3463, allocations: 7.938 kB / 0.5651 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001814/0.3465, allocations: 55.42 kB / 0.5652 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.3467, allocations: 99.12 kB / 0.5653 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.3469, allocations: 87.88 kB / 0.5653 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004677/0.3473, allocations: 410.1 kB / 0.5657 GB, free: 152 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.3476, allocations: 91.34 kB / 0.5658 GB, free: 60 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.3477, allocations: 159.6 kB / 0.566 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/0.348, allocations: 163.3 kB / 0.5661 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.438e-05/0.348, allocations: 36 kB / 0.5662 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.124e-05/0.3481, allocations: 36 kB / 0.5662 GB, free: 15.67 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.747e-05/0.3482, allocations: 71.77 kB / 0.5663 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001737/0.3483, allocations: 147.4 kB / 0.5664 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.3488, allocations: 394.1 kB / 0.5668 GB, free: 15.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3488, allocations: 0 / 0.5668 GB, free: 15.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3488, allocations: 0 / 0.5668 GB, free: 15.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.3488, allocations: 3.938 kB / 0.5668 GB, free: 15.07 MB / 414.1 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.001104/0.3499, allocations: 0.5716 MB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.35, allocations: 8.031 kB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.285e-05/0.35, allocations: 36.75 kB / 0.5674 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004191/0.3505, allocations: 210.7 kB / 0.5676 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.3505, allocations: 24.97 kB / 0.5676 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.3505, allocations: 28.38 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006766/0.3512, allocations: 433 kB / 0.568 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3512, allocations: 0 / 0.568 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.3513, allocations: 12 kB / 0.5681 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.3513, allocations: 7.984 kB / 0.5681 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005172/0.3518, allocations: 246.4 kB / 0.5683 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.3538, allocations: 1.084 MB / 0.5694 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006798/0.3545, allocations: 292.3 kB / 0.5696 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002929/0.3548, allocations: 140.1 kB / 0.5698 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.3548, allocations: 8.172 kB / 0.5698 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.3548, allocations: 34.8 kB / 0.5698 GB, free: 11.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.313e-06/0.3548, allocations: 0 / 0.5698 GB, free: 11.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002855/0.3577, allocations: 0.8601 MB / 0.5706 GB, free: 10.92 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.3577, allocations: 55.39 kB / 0.5707 GB, free: 10.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002466/0.358, allocations: 213 kB / 0.5709 GB, free: 10.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.358, allocations: 33.7 kB / 0.5709 GB, free: 10.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.3581, allocations: 176.5 kB / 0.5711 GB, free: 10.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.667e-05/0.3582, allocations: 95.16 kB / 0.5712 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.3583, allocations: 57.66 kB / 0.5713 GB, free: 10.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3585, allocations: 326.8 kB / 0.5716 GB, free: 9.934 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002334/0.3587, allocations: 103.9 kB / 0.5717 GB, free: 9.832 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002659/0.359, allocations: 156.8 kB / 0.5718 GB, free: 9.664 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000469/0.3594, allocations: 252.6 kB / 0.5721 GB, free: 9.402 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3594, allocations: 4 kB / 0.5721 GB, free: 9.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001123/0.3606, allocations: 478.7 kB / 0.5725 GB, free: 8.918 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.3606, allocations: 8 kB / 0.5725 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3606, allocations: 0 / 0.5725 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009808/0.3616, allocations: 241.5 kB / 0.5728 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.3617, allocations: 31.98 kB / 0.5728 GB, free: 8.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004268/0.366, allocations: 3.408 MB / 0.5761 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002057/0.3662, allocations: 35.72 kB / 0.5761 GB, free: 4.992 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.3662, allocations: 16.52 kB / 0.5762 GB, free: 4.977 MB / 414.1 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 0.0001789/0.3664, allocations: 137.8 kB / 0.5763 GB, free: 4.832 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.715e-05/0.3665, allocations: 31.86 kB / 0.5763 GB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.764e-05/0.3665, allocations: 26.66 kB / 0.5763 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3665, allocations: 0 / 0.5763 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.3665, allocations: 7.984 kB / 0.5764 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.3665, allocations: 0 / 0.5764 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/0.3681, allocations: 0.7787 MB / 0.5771 GB, free: 3.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3681, allocations: 0 / 0.5771 GB, free: 3.945 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.146e-05/0.3682, allocations: 23.98 kB / 0.5771 GB, free: 3.922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008723/0.3691, allocations: 237.4 kB / 0.5774 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.3691, allocations: 4 kB / 0.5774 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004034/0.3731, allocations: 3.405 MB / 0.5807 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3731, allocations: 0 / 0.5807 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.3742, allocations: 0.5329 MB / 0.5812 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.3744, allocations: 43.77 kB / 0.5813 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.3744, allocations: 7.938 kB / 0.5813 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.3746, allocations: 31.92 kB / 0.5813 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.378e-05/0.3747, allocations: 31.94 kB / 0.5813 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.3747, allocations: 8 kB / 0.5813 GB, free: 15.39 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001573/0.3749, allocations: 155.2 kB / 0.5815 GB, free: 15.24 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3749, allocations: 0 / 0.5815 GB, free: 15.24 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004676/0.3754, allocations: 111.8 kB / 0.5816 GB, free: 15.13 MB / 430.1 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 0.000134/0.3755, allocations: 103.2 kB / 0.5817 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.3765, allocations: 0.5362 MB / 0.5822 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.3765, allocations: 0 / 0.5822 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006319/0.3772, allocations: 425 kB / 0.5826 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.3775, allocations: 44.47 kB / 0.5827 GB, free: 13.97 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.3785, allocations: 0.5447 MB / 0.5832 GB, free: 13.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.3787, allocations: 159.2 kB / 0.5833 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.822e-05/0.3788, allocations: 19.44 kB / 0.5834 GB, free: 13.2 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3788, allocations: 0 / 0.5834 GB, free: 13.2 MB / 430.1 MB Notification: Performance of Templates: time 0.008517/0.3873, allocations: 5.539 MB / 0.5888 GB, free: 7.66 MB / 430.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/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: 8.629192352993414]