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.00167/0.00167, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002147/0.002147, allocations: 214.7 kB / 24.48 MB, free: 3.941 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.628/1.628, allocations: 230.6 MB / 258.2 MB, free: 7.754 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.2543/0.2543, allocations: 46.95 MB / 361.6 MB, free: 4.02 MB / 286.1 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 0.003241/0.003241, allocations: 71.88 kB / 0.4973 GB, free: 7.199 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.366, allocations: 66.03 MB / 0.5618 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004149/0.3702, allocations: 2.715 MB / 0.5645 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.3716, allocations: 0.661 MB / 0.5651 GB, free: 0.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.3717, allocations: 4 kB / 0.5651 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001992/0.3719, allocations: 59.44 kB / 0.5652 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001904/0.3721, allocations: 91.12 kB / 0.5652 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.3723, allocations: 95.86 kB / 0.5653 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004535/0.3728, allocations: 406.1 kB / 0.5657 GB, free: 108 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002196/0.373, allocations: 95.33 kB / 0.5658 GB, free: 12 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.3732, allocations: 151.6 kB / 0.566 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.3734, allocations: 167.3 kB / 0.5661 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.132e-05/0.3735, allocations: 36 kB / 0.5662 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.325e-05/0.3736, allocations: 36 kB / 0.5662 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.456e-05/0.3737, allocations: 75.75 kB / 0.5663 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.3739, allocations: 135.5 kB / 0.5664 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004807/0.3744, allocations: 398.1 kB / 0.5668 GB, free: 15.03 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3744, allocations: 0 / 0.5668 GB, free: 15.03 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3744, allocations: 0 / 0.5668 GB, free: 15.03 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.3744, allocations: 3.938 kB / 0.5668 GB, free: 15.03 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.001083/0.3755, allocations: 0.5716 MB / 0.5673 GB, free: 14.43 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.3755, allocations: 8.031 kB / 0.5673 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.028e-05/0.3756, allocations: 36.75 kB / 0.5674 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004239/0.376, allocations: 218.6 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.376, allocations: 17.03 kB / 0.5676 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.378e-05/0.3761, allocations: 32.31 kB / 0.5676 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007101/0.3768, allocations: 433 kB / 0.568 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.3768, allocations: 0 / 0.568 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.919e-05/0.3769, allocations: 16 kB / 0.5681 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.3769, allocations: 8 kB / 0.5681 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005326/0.3774, allocations: 242.4 kB / 0.5683 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.3795, allocations: 1.08 MB / 0.5694 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007494/0.3802, allocations: 294.7 kB / 0.5696 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003089/0.3805, allocations: 145.2 kB / 0.5698 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.3806, allocations: 4.172 kB / 0.5698 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.3806, allocations: 42.8 kB / 0.5698 GB, free: 11.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.343e-06/0.3806, allocations: 0 / 0.5698 GB, free: 11.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002911/0.3835, allocations: 0.8523 MB / 0.5707 GB, free: 10.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.3836, allocations: 55.41 kB / 0.5707 GB, free: 10.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.3838, allocations: 209 kB / 0.5709 GB, free: 10.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.3838, allocations: 33.7 kB / 0.5709 GB, free: 10.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.384, allocations: 180.5 kB / 0.5711 GB, free: 10.37 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.035e-05/0.384, allocations: 91.22 kB / 0.5712 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.3841, allocations: 53.66 kB / 0.5712 GB, free: 10.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3843, allocations: 334.8 kB / 0.5716 GB, free: 9.887 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.3845, allocations: 104 kB / 0.5717 GB, free: 9.785 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.3848, allocations: 156.7 kB / 0.5718 GB, free: 9.617 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004995/0.3853, allocations: 248.7 kB / 0.5721 GB, free: 9.359 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.3853, allocations: 4 kB / 0.5721 GB, free: 9.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001177/0.3865, allocations: 486.7 kB / 0.5725 GB, free: 8.867 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3865, allocations: 8 kB / 0.5725 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.3865, allocations: 0 / 0.5725 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.3875, allocations: 241.5 kB / 0.5728 GB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.3877, allocations: 31.92 kB / 0.5728 GB, free: 8.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004359/0.392, allocations: 3.397 MB / 0.5761 GB, free: 4.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.3922, allocations: 39.86 kB / 0.5761 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.3923, allocations: 8 kB / 0.5762 GB, free: 4.941 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.0001728/0.3924, allocations: 149.7 kB / 0.5763 GB, free: 4.785 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.936e-05/0.3925, allocations: 23.86 kB / 0.5763 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.776e-05/0.3926, allocations: 38.58 kB / 0.5764 GB, free: 4.723 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.3926, allocations: 4 kB / 0.5764 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.3926, allocations: 0 / 0.5764 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.3926, allocations: 0 / 0.5764 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001583/0.3942, allocations: 0.7786 MB / 0.5771 GB, free: 3.898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.3942, allocations: 4 kB / 0.5771 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.706e-05/0.3943, allocations: 19.92 kB / 0.5771 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008566/0.3951, allocations: 233.9 kB / 0.5774 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.3951, allocations: 7.984 kB / 0.5774 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00413/0.3993, allocations: 3.405 MB / 0.5807 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3993, allocations: 0 / 0.5807 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.4004, allocations: 0.5213 MB / 0.5812 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.4005, allocations: 51.75 kB / 0.5813 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.384e-05/0.4005, allocations: 11.94 kB / 0.5813 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.4008, allocations: 27.97 kB / 0.5813 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.24e-05/0.4008, allocations: 35.88 kB / 0.5813 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.4009, allocations: 8 kB / 0.5813 GB, free: 15.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000144/0.401, allocations: 147.2 kB / 0.5815 GB, free: 15.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.401, allocations: 0 / 0.5815 GB, free: 15.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004506/0.4015, allocations: 111.8 kB / 0.5816 GB, free: 15.09 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.000117/0.4016, allocations: 103.2 kB / 0.5817 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.4026, allocations: 0.5323 MB / 0.5822 GB, free: 14.42 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4026, allocations: 4 kB / 0.5822 GB, free: 14.42 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006245/0.4032, allocations: 421 kB / 0.5826 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.4036, allocations: 52.98 kB / 0.5827 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009337/0.4045, allocations: 0.5142 MB / 0.5832 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/0.4047, allocations: 159.2 kB / 0.5833 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.762e-05/0.4048, allocations: 18.3 kB / 0.5833 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.446e-05/0.4048, allocations: 15.44 kB / 0.5833 GB, free: 13.18 MB / 430.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4048, allocations: 0 / 0.5833 GB, free: 13.18 MB / 430.1 MB Notification: Performance of Templates: time 0.009634/0.4144, allocations: 5.033 MB / 0.5883 GB, free: 8.223 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 -s gbode -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: 5.490360131996567]