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.001361/0.001361, allocations: 71.59 kB / 21.24 MB, free: 0.5469 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.001449/0.001449, allocations: 159.5 kB / 24.5 MB, free: 3.723 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.526/1.526, allocations: 177.2 MB / 204.9 MB, free: 9 MB / 190.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.2182/0.2182, allocations: 34.27 MB / 295.5 MB, free: 14.56 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.002148/0.002148, allocations: 71.88 kB / 443.1 MB, free: 6.668 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3291, allocations: 66.01 MB / 0.4972 GB, free: 29.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003267/0.3324, allocations: 2.72 MB / 0.4999 GB, free: 27.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.3334, allocations: 0.6514 MB / 0.5005 GB, free: 27.52 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.3336, allocations: 10.53 kB / 0.5005 GB, free: 27.52 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.3337, allocations: 52.27 kB / 0.5006 GB, free: 27.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.3339, allocations: 98.22 kB / 0.5007 GB, free: 27.41 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000153/0.334, allocations: 88.86 kB / 0.5008 GB, free: 27.37 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.3343, allocations: 409.3 kB / 0.5011 GB, free: 27.16 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.3345, allocations: 90.41 kB / 0.5012 GB, free: 27.12 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.3346, allocations: 154 kB / 0.5014 GB, free: 27.05 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.3348, allocations: 141.5 kB / 0.5015 GB, free: 26.99 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.3348, allocations: 38.41 kB / 0.5015 GB, free: 26.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.19e-05/0.3349, allocations: 31.44 kB / 0.5016 GB, free: 26.98 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.403e-05/0.3349, allocations: 75.16 kB / 0.5016 GB, free: 26.93 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.335, allocations: 142.9 kB / 0.5018 GB, free: 26.86 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003044/0.3353, allocations: 395.2 kB / 0.5022 GB, free: 26.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3354, allocations: 3.938 kB / 0.5022 GB, free: 26.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.3354, allocations: 3.188 kB / 0.5022 GB, free: 26.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.3354, allocations: 3.938 kB / 0.5022 GB, free: 26.7 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.0008761/0.3362, allocations: 0.5699 MB / 0.5027 GB, free: 26.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.3363, allocations: 9.625 kB / 0.5027 GB, free: 26.29 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.299e-05/0.3363, allocations: 36 kB / 0.5028 GB, free: 26.27 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.3366, allocations: 213.6 kB / 0.503 GB, free: 26.08 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.3367, allocations: 20.75 kB / 0.503 GB, free: 26.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.3367, allocations: 31.53 kB / 0.503 GB, free: 26.06 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005425/0.3372, allocations: 429.3 kB / 0.5034 GB, free: 25.78 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.3373, allocations: 0 / 0.5034 GB, free: 25.78 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.3373, allocations: 15.03 kB / 0.5034 GB, free: 25.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.3373, allocations: 6.156 kB / 0.5035 GB, free: 25.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004939/0.3378, allocations: 244.1 kB / 0.5037 GB, free: 25.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.3395, allocations: 1.081 MB / 0.5047 GB, free: 24.94 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000634/0.3401, allocations: 295.8 kB / 0.505 GB, free: 24.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002703/0.3404, allocations: 139.8 kB / 0.5052 GB, free: 24.76 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.3404, allocations: 14.52 kB / 0.5052 GB, free: 24.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.3404, allocations: 37.7 kB / 0.5052 GB, free: 24.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=27): time 1.653e-06/0.3404, allocations: 4 kB / 0.5052 GB, free: 24.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=27): time 0.002723/0.3431, allocations: 0.8516 MB / 0.506 GB, free: 24.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.3432, allocations: 54.53 kB / 0.5061 GB, free: 24.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.3433, allocations: 216.7 kB / 0.5063 GB, free: 24.29 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.3434, allocations: 29.7 kB / 0.5063 GB, free: 24.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.932e-05/0.3434, allocations: 174.7 kB / 0.5065 GB, free: 24.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.443e-05/0.3435, allocations: 94.23 kB / 0.5066 GB, free: 24.03 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-05/0.3435, allocations: 53.64 kB / 0.5066 GB, free: 23.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.422e-05/0.3436, allocations: 336 kB / 0.507 GB, free: 23.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/0.3438, allocations: 111.3 kB / 0.5071 GB, free: 23.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.344, allocations: 152.5 kB / 0.5072 GB, free: 23.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004092/0.3444, allocations: 248.6 kB / 0.5074 GB, free: 23.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3444, allocations: 0 / 0.5074 GB, free: 23.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001025/0.3455, allocations: 483.1 kB / 0.5079 GB, free: 23.22 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.3455, allocations: 6 kB / 0.5079 GB, free: 23.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.3455, allocations: 6.969 kB / 0.5079 GB, free: 23.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009187/0.3464, allocations: 231 kB / 0.5081 GB, free: 23.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.3466, allocations: 31.53 kB / 0.5082 GB, free: 23.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003255/0.3498, allocations: 3.412 MB / 0.5115 GB, free: 20.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.35, allocations: 39.44 kB / 0.5115 GB, free: 20.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.35, allocations: 5.875 kB / 0.5115 GB, free: 20.31 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.0001204/0.3502, allocations: 149.7 kB / 0.5117 GB, free: 20.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.571e-05/0.3502, allocations: 23.89 kB / 0.5117 GB, free: 20.16 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.732e-05/0.3503, allocations: 32.75 kB / 0.5117 GB, free: 20.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3503, allocations: 6.422 kB / 0.5117 GB, free: 20.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.3503, allocations: 7.078 kB / 0.5118 GB, free: 20.12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.3503, allocations: 0 / 0.5118 GB, free: 20.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.3516, allocations: 0.777 MB / 0.5125 GB, free: 19.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3516, allocations: 0 / 0.5125 GB, free: 19.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.194e-05/0.3517, allocations: 18.14 kB / 0.5125 GB, free: 19.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008184/0.3525, allocations: 238.7 kB / 0.5128 GB, free: 19.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.3525, allocations: 0 / 0.5128 GB, free: 19.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003314/0.3559, allocations: 3.41 MB / 0.5161 GB, free: 16.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3559, allocations: 1.656 kB / 0.5161 GB, free: 16.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.3569, allocations: 0.5249 MB / 0.5166 GB, free: 16.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.801e-05/0.357, allocations: 45.55 kB / 0.5166 GB, free: 16.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.357, allocations: 13.22 kB / 0.5167 GB, free: 16.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.3573, allocations: 27.06 kB / 0.5167 GB, free: 16.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.307e-05/0.3574, allocations: 28.89 kB / 0.5167 GB, free: 16.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.3574, allocations: 8.781 kB / 0.5167 GB, free: 16.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001248/0.3575, allocations: 149.8 kB / 0.5169 GB, free: 16.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3575, allocations: 0 / 0.5169 GB, free: 16.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004802/0.358, allocations: 110.9 kB / 0.517 GB, free: 16.33 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.938e-05/0.3581, allocations: 109.1 kB / 0.5171 GB, free: 16.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.3592, allocations: 0.5383 MB / 0.5176 GB, free: 15.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3592, allocations: 1.375 kB / 0.5176 GB, free: 15.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005442/0.3598, allocations: 419.9 kB / 0.518 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003617/0.3601, allocations: 49.78 kB / 0.518 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009166/0.361, allocations: 0.5048 MB / 0.5185 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.3612, allocations: 161.5 kB / 0.5187 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.272e-05/0.3613, allocations: 18.56 kB / 0.5187 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.523e-05/0.3613, allocations: 17.28 kB / 0.5187 GB, free: 15.17 MB / 446.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3613, allocations: 0 / 0.5187 GB, free: 15.17 MB / 446.1 MB Notification: Performance of Templates: time 0.01023/0.3716, allocations: 4.631 MB / 0.5233 GB, free: 14.6 MB / 446.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 ida -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.24518705601804]