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.001008/0.001008, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009884/0.0009884, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9922/0.9922, allocations: 177.1 MB / 205 MB, free: 5.59 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.2935/0.2935, allocations: 34.26 MB / 295.7 MB, free: 0.75 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 1.633e-06/1.633e-06, allocations: 0 / 378 MB, free: 2.676 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.474e-05/2.637e-05, allocations: 2.312 kB / 378 MB, free: 2.672 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003299/0.003326, allocations: 2.946 MB / 381 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.004441, allocations: 0.6814 MB / 381.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.004593, allocations: 8 kB / 381.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001933/0.004786, allocations: 51.44 kB / 381.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.00496, allocations: 107 kB / 381.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001724/0.005132, allocations: 87.86 kB / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003651/0.005497, allocations: 422.1 kB / 382.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001948/0.005692, allocations: 83.34 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002499/0.005942, allocations: 223.5 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.006107, allocations: 127.7 kB / 382.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.279e-05/0.006149, allocations: 36 kB / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.88e-05/0.006188, allocations: 36 kB / 382.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.997e-05/0.006238, allocations: 75.73 kB / 382.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.493e-05/0.006333, allocations: 119.7 kB / 383 MB, free: 13.66 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002782/0.006611, allocations: 267 kB / 383.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.006614, allocations: 0 / 383.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006615, allocations: 0 / 383.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.006621, allocations: 0 / 383.3 MB, free: 13.4 MB / 362.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.0007277/0.007349, allocations: 0.6559 MB / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.0074, allocations: 12.03 kB / 383.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.82e-05/0.007488, allocations: 56.7 kB / 384 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002974/0.007785, allocations: 233.1 kB / 384.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.007814, allocations: 21.03 kB / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.309e-05/0.007847, allocations: 28.38 kB / 384.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000416/0.008263, allocations: 366.5 kB / 384.6 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.008274, allocations: 192 / 384.6 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.008297, allocations: 12.38 kB / 384.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.008309, allocations: 7.938 kB / 384.6 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001856/0.008495, allocations: 127.8 kB / 384.8 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.009816, allocations: 1.175 MB / 385.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003622/0.01018, allocations: 226.2 kB / 386.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.01032, allocations: 100.1 kB / 386.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.01033, allocations: 8.234 kB / 386.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.01036, allocations: 41.62 kB / 386.3 MB, free: 10.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.004e-06/0.01036, allocations: 3.938 kB / 386.3 MB, free: 10.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001246/0.01161, allocations: 0.6002 MB / 386.9 MB, free: 9.547 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.01164, allocations: 59.41 kB / 387 MB, free: 9.477 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001716/0.01181, allocations: 271.5 kB / 387.2 MB, free: 9.195 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.01183, allocations: 29.7 kB / 387.3 MB, free: 9.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.01193, allocations: 219.3 kB / 387.5 MB, free: 8.941 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.896e-05/0.01198, allocations: 95.17 kB / 387.6 MB, free: 8.848 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.674e-05/0.01205, allocations: 59.31 kB / 387.6 MB, free: 8.781 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.01217, allocations: 0.504 MB / 388.1 MB, free: 8.266 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.851e-05/0.01225, allocations: 47.97 kB / 388.2 MB, free: 8.219 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.01235, allocations: 103.1 kB / 388.3 MB, free: 8.098 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.01253, allocations: 166.4 kB / 388.4 MB, free: 7.914 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.01253, allocations: 0 / 388.4 MB, free: 7.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004681/0.013, allocations: 340.5 kB / 388.8 MB, free: 7.566 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.01302, allocations: 10.03 kB / 388.8 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.01303, allocations: 0 / 388.8 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005193/0.01355, allocations: 183.2 kB / 389 MB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.158e-05/0.01364, allocations: 31.92 kB / 389 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002456/0.0161, allocations: 3.989 MB / 393 MB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.01621, allocations: 31.84 kB / 393 MB, free: 3.074 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.01623, allocations: 8 kB / 393 MB, free: 3.066 MB / 362.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 0.0001269/0.01635, allocations: 176.4 kB / 393.2 MB, free: 2.883 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.515e-05/0.0164, allocations: 35.8 kB / 393.2 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.411e-05/0.01643, allocations: 34.64 kB / 393.3 MB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.01644, allocations: 8.031 kB / 393.3 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.01645, allocations: 4 kB / 393.3 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.01646, allocations: 0 / 393.3 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007764/0.01723, allocations: 0.6726 MB / 393.9 MB, free: 2.078 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.01724, allocations: 7.938 kB / 393.9 MB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.653e-05/0.01728, allocations: 19.94 kB / 394 MB, free: 2.051 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00044/0.01772, allocations: 183.2 kB / 394.1 MB, free: 1.863 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.01774, allocations: 4 kB / 394.1 MB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002107/0.01984, allocations: 3.982 MB / 398.1 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.01984, allocations: 0 / 398.1 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004484/0.02029, allocations: 464.8 kB / 398.6 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.149e-05/0.02036, allocations: 47.75 kB / 398.6 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.02038, allocations: 8.031 kB / 398.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.97e-05/0.02048, allocations: 23.98 kB / 398.7 MB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.448e-05/0.02056, allocations: 31.88 kB / 398.7 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.02058, allocations: 8 kB / 398.7 MB, free: 13.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.675e-05/0.02067, allocations: 179.1 kB / 398.9 MB, free: 12.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02067, allocations: 0 / 398.9 MB, free: 12.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003265/0.021, allocations: 111.8 kB / 399 MB, free: 12.75 MB / 378.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 0.0001162/0.02112, allocations: 111.2 kB / 399.1 MB, free: 12.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000602/0.02172, allocations: 0.5567 MB / 399.7 MB, free: 12.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.02172, allocations: 4 kB / 399.7 MB, free: 12.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.02204, allocations: 0.4992 MB / 400.2 MB, free: 11.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.0223, allocations: 36.48 kB / 400.2 MB, free: 11.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008674/0.02316, allocations: 491.1 kB / 400.7 MB, free: 10.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.669e-05/0.02324, allocations: 96.61 kB / 400.8 MB, free: 10.83 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.256e-05/0.0233, allocations: 18.3 kB / 400.8 MB, free: 10.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.369e-05/0.02335, allocations: 16.5 kB / 400.8 MB, free: 10.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.083e-06/0.02335, allocations: 0 / 400.8 MB, free: 10.8 MB / 378.7 MB Notification: Performance of Templates: time 0.00705/0.0304, allocations: 4.774 MB / 405.6 MB, free: 6.086 MB / 378.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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4233708903193474]