Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001359/0.001359, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 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.00155/0.00155, allocations: 169.9 kB / 24.5 MB, free: 3.453 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.459/1.459, allocations: 177.2 MB / 204.9 MB, free: 9.066 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2046/0.2046, allocations: 32.81 MB / 294.1 MB, free: 80 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002215/0.002215, allocations: 67.91 kB / 440.6 MB, free: 9.504 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3579, allocations: 65.44 MB / 0.4941 GB, free: 31.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003252/0.3611, allocations: 2.724 MB / 0.4968 GB, free: 29.6 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009736/0.3621, allocations: 0.6546 MB / 0.4974 GB, free: 29.14 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.3622, allocations: 10.41 kB / 0.4974 GB, free: 29.13 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.3624, allocations: 55.86 kB / 0.4975 GB, free: 29.1 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001391/0.3625, allocations: 89.42 kB / 0.4976 GB, free: 29.04 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.3627, allocations: 92.53 kB / 0.4977 GB, free: 28.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.363, allocations: 411.9 kB / 0.4981 GB, free: 28.78 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.3632, allocations: 94.42 kB / 0.4982 GB, free: 28.73 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.3633, allocations: 146.6 kB / 0.4983 GB, free: 28.66 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001829/0.3635, allocations: 145.6 kB / 0.4984 GB, free: 28.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.665e-05/0.3635, allocations: 39.34 kB / 0.4985 GB, free: 28.6 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.131e-05/0.3636, allocations: 32.59 kB / 0.4985 GB, free: 28.6 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.44e-05/0.3636, allocations: 75.14 kB / 0.4986 GB, free: 28.55 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.3637, allocations: 132.9 kB / 0.4987 GB, free: 28.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002975/0.364, allocations: 401.6 kB / 0.4991 GB, free: 28.32 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.364, allocations: 0 / 0.4991 GB, free: 28.32 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.364, allocations: 0 / 0.4991 GB, free: 28.32 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.364, allocations: 4 kB / 0.4991 GB, free: 28.32 MB / 446.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.0009023/0.3649, allocations: 0.5686 MB / 0.4996 GB, free: 27.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.365, allocations: 13.09 kB / 0.4997 GB, free: 27.91 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.538e-05/0.365, allocations: 34.91 kB / 0.4997 GB, free: 27.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.3653, allocations: 215.6 kB / 0.4999 GB, free: 27.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.3654, allocations: 21.44 kB / 0.4999 GB, free: 27.69 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.088e-05/0.3654, allocations: 24.62 kB / 0.4999 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005254/0.3659, allocations: 432.7 kB / 0.5004 GB, free: 27.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3659, allocations: 4 kB / 0.5004 GB, free: 27.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.366, allocations: 11.16 kB / 0.5004 GB, free: 27.39 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.366, allocations: 9.594 kB / 0.5004 GB, free: 27.39 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/0.3664, allocations: 239 kB / 0.5006 GB, free: 27.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.368, allocations: 1.09 MB / 0.5017 GB, free: 26.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006042/0.3686, allocations: 290.7 kB / 0.5019 GB, free: 26.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002574/0.3689, allocations: 143.8 kB / 0.5021 GB, free: 26.37 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.3689, allocations: 7.359 kB / 0.5021 GB, free: 26.37 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.3689, allocations: 33.95 kB / 0.5021 GB, free: 26.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=27): time 1.463e-06/0.3689, allocations: 0 / 0.5021 GB, free: 26.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=27): time 0.002564/0.3715, allocations: 0.8611 MB / 0.503 GB, free: 26.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.3715, allocations: 54.47 kB / 0.503 GB, free: 26.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.3717, allocations: 209.9 kB / 0.5032 GB, free: 25.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.3717, allocations: 35.86 kB / 0.5032 GB, free: 25.87 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.034e-05/0.3718, allocations: 176.4 kB / 0.5034 GB, free: 25.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.608e-05/0.3718, allocations: 97.77 kB / 0.5035 GB, free: 25.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.797e-05/0.3719, allocations: 57.5 kB / 0.5036 GB, free: 25.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.365e-05/0.3719, allocations: 331.5 kB / 0.5039 GB, free: 25.28 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.3721, allocations: 100.9 kB / 0.504 GB, free: 25.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002414/0.3724, allocations: 154.7 kB / 0.5041 GB, free: 25.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004027/0.3728, allocations: 241.8 kB / 0.5044 GB, free: 25.04 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3728, allocations: 6.906 kB / 0.5044 GB, free: 25.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009862/0.3738, allocations: 488.9 kB / 0.5048 GB, free: 24.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.3738, allocations: 6.031 kB / 0.5048 GB, free: 24.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3738, allocations: 8 kB / 0.5048 GB, free: 24.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009169/0.3747, allocations: 234.4 kB / 0.5051 GB, free: 24.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.3749, allocations: 35.69 kB / 0.5051 GB, free: 24.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003209/0.3781, allocations: 3.411 MB / 0.5084 GB, free: 21.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.3783, allocations: 36.14 kB / 0.5085 GB, free: 21.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.3783, allocations: 10.62 kB / 0.5085 GB, free: 21.92 MB / 446.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.0001176/0.3784, allocations: 139.1 kB / 0.5086 GB, free: 21.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.531e-05/0.3785, allocations: 24.88 kB / 0.5086 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.245e-05/0.3785, allocations: 41.06 kB / 0.5087 GB, free: 21.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.3785, allocations: 3.125 kB / 0.5087 GB, free: 21.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.3785, allocations: 3.219 kB / 0.5087 GB, free: 21.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3785, allocations: 3.422 kB / 0.5087 GB, free: 21.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.3798, allocations: 0.7689 MB / 0.5094 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.3798, allocations: 0 / 0.5094 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.84e-05/0.3799, allocations: 14.91 kB / 0.5094 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008169/0.3807, allocations: 240.7 kB / 0.5097 GB, free: 21.24 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.3807, allocations: 6.906 kB / 0.5097 GB, free: 21.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003018/0.3837, allocations: 3.406 MB / 0.513 GB, free: 18.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3837, allocations: 4.062 kB / 0.513 GB, free: 18.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009339/0.3847, allocations: 0.5242 MB / 0.5135 GB, free: 18.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.878e-05/0.3848, allocations: 46.45 kB / 0.5136 GB, free: 18.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.602e-05/0.3848, allocations: 7.938 kB / 0.5136 GB, free: 18.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.385, allocations: 25.56 kB / 0.5136 GB, free: 18.08 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.422e-05/0.3851, allocations: 30.06 kB / 0.5136 GB, free: 18.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.3851, allocations: 7.156 kB / 0.5136 GB, free: 18.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.3852, allocations: 163.3 kB / 0.5138 GB, free: 17.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3852, allocations: 3.938 kB / 0.5138 GB, free: 17.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004429/0.3857, allocations: 108.6 kB / 0.5139 GB, free: 17.94 MB / 446.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 9.509e-05/0.3857, allocations: 105.5 kB / 0.514 GB, free: 17.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0009084/0.3867, allocations: 0.53 MB / 0.5145 GB, free: 17.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3867, allocations: 0.5312 kB / 0.5145 GB, free: 17.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005348/0.3872, allocations: 435.1 kB / 0.5149 GB, free: 17.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.3876, allocations: 33.56 kB / 0.515 GB, free: 17.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008995/0.3885, allocations: 0.5254 MB / 0.5155 GB, free: 16.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.3886, allocations: 161.7 kB / 0.5156 GB, free: 16.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.49e-05/0.3887, allocations: 17.66 kB / 0.5156 GB, free: 16.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.316e-05/0.3887, allocations: 17.09 kB / 0.5157 GB, free: 16.78 MB / 446.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3887, allocations: 1.344 kB / 0.5157 GB, free: 16.78 MB / 446.1 MB Notification: Performance of Templates: time 0.00919/0.3979, allocations: 4.638 MB / 0.5202 GB, free: 16.21 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.091087005916052]