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.001469/0.001469, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.001636/0.001636, allocations: 161.7 kB / 24.27 MB, free: 176 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 1.557/1.557, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.4711/0.4711, allocations: 34.26 MB / 295.3 MB, free: 0.6875 MB / 266.7 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 3.306e-06/3.306e-06, allocations: 0 / 377.3 MB, free: 2.984 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.429e-05/4.76e-05, allocations: 5.547 kB / 377.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.007284/0.007331, allocations: 2.725 MB / 380 MB, free: 240 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002562/0.009893, allocations: 0.6622 MB / 380.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004661/0.01036, allocations: 7.938 kB / 380.7 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003981/0.01076, allocations: 55.44 kB / 380.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005518/0.01131, allocations: 95.06 kB / 380.8 MB, free: 15.41 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004299/0.01174, allocations: 95.84 kB / 380.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.01277, allocations: 425.9 kB / 381.3 MB, free: 14.9 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003538/0.01312, allocations: 83.34 kB / 381.4 MB, free: 14.81 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005737/0.0137, allocations: 227.6 kB / 381.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003456/0.01404, allocations: 115.7 kB / 381.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.01417, allocations: 32 kB / 381.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.01427, allocations: 36 kB / 381.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.0144, allocations: 75.73 kB / 381.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003622/0.01476, allocations: 123.7 kB / 382 MB, free: 14.21 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008374/0.0156, allocations: 414.6 kB / 382.4 MB, free: 13.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.0156, allocations: 4 kB / 382.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.0156, allocations: 0 / 382.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.974e-05/0.01562, allocations: 0 / 382.4 MB, free: 13.8 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.001865/0.01749, allocations: 0.556 MB / 383 MB, free: 13.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.451e-05/0.01755, allocations: 12.03 kB / 383 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000213/0.01777, allocations: 56.7 kB / 383 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000726/0.01849, allocations: 214.4 kB / 383.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.427e-05/0.01854, allocations: 24.97 kB / 383.3 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.4e-05/0.01861, allocations: 24.38 kB / 383.3 MB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.01969, allocations: 437.3 kB / 383.7 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.0197, allocations: 192 / 383.7 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001858/0.01989, allocations: 16.36 kB / 383.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.0199, allocations: 7.938 kB / 383.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007124/0.02061, allocations: 242.4 kB / 384 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003361/0.02398, allocations: 1.1 MB / 385.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.02524, allocations: 281.6 kB / 385.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005081/0.02575, allocations: 141.2 kB / 385.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.02578, allocations: 4.234 kB / 385.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.781e-05/0.02582, allocations: 34.8 kB / 385.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.194e-06/0.02583, allocations: 0 / 385.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.004583/0.03041, allocations: 0.8679 MB / 386.4 MB, free: 9.637 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.03047, allocations: 63.33 kB / 386.5 MB, free: 9.562 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004468/0.03092, allocations: 224.9 kB / 386.7 MB, free: 9.336 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.734e-05/0.03098, allocations: 33.7 kB / 386.7 MB, free: 9.297 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/0.0312, allocations: 172.5 kB / 386.9 MB, free: 9.125 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.03135, allocations: 99.11 kB / 387 MB, free: 9.027 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.03151, allocations: 49.7 kB / 387 MB, free: 8.973 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005195/0.03203, allocations: 334.8 kB / 387.4 MB, free: 8.637 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004444/0.03248, allocations: 103.9 kB / 387.5 MB, free: 8.535 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005312/0.03301, allocations: 141 kB / 387.6 MB, free: 8.383 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009668/0.03398, allocations: 248.7 kB / 387.8 MB, free: 8.125 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.03398, allocations: 0 / 387.8 MB, free: 8.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002076/0.03605, allocations: 0.4909 MB / 388.3 MB, free: 7.621 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.03608, allocations: 8 kB / 388.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.03609, allocations: 0 / 388.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002131/0.03822, allocations: 293.4 kB / 388.6 MB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002416/0.03846, allocations: 31.92 kB / 388.7 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00789/0.04635, allocations: 3.424 MB / 392.1 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004055/0.04676, allocations: 31.86 kB / 392.1 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-05/0.04681, allocations: 12 kB / 392.1 MB, free: 3.613 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.0003236/0.04713, allocations: 141.8 kB / 392.3 MB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.04729, allocations: 39.8 kB / 392.3 MB, free: 3.426 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.04741, allocations: 34.64 kB / 392.3 MB, free: 3.395 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.04741, allocations: 4 kB / 392.3 MB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.665e-05/0.04743, allocations: 4 kB / 392.3 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.04743, allocations: 0 / 392.3 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/0.05036, allocations: 0.7692 MB / 393.1 MB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-06/0.05037, allocations: 3.938 kB / 393.1 MB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.05051, allocations: 15.98 kB / 393.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002183/0.0527, allocations: 293.3 kB / 393.4 MB, free: 2.262 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.425e-05/0.05273, allocations: 4 kB / 393.4 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008045/0.06078, allocations: 3.425 MB / 396.8 MB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.06078, allocations: 0 / 396.8 MB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002051/0.06283, allocations: 0.534 MB / 397.4 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002091/0.06304, allocations: 43.77 kB / 397.4 MB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.922e-05/0.0631, allocations: 4 kB / 397.4 MB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.06351, allocations: 27.97 kB / 397.5 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/0.06367, allocations: 35.89 kB / 397.5 MB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-05/0.06371, allocations: 15.92 kB / 397.5 MB, free: 13.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002657/0.06398, allocations: 155.2 kB / 397.7 MB, free: 13.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.06398, allocations: 0 / 397.7 MB, free: 13.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008718/0.06485, allocations: 107.9 kB / 397.8 MB, free: 13.69 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.0002002/0.06505, allocations: 99.25 kB / 397.9 MB, free: 13.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.06679, allocations: 0.535 MB / 398.4 MB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.06679, allocations: 0 / 398.4 MB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.06789, allocations: 433 kB / 398.8 MB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006238/0.06852, allocations: 40.47 kB / 398.9 MB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.07015, allocations: 0.5088 MB / 399.4 MB, free: 12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.07041, allocations: 163.1 kB / 399.5 MB, free: 11.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.07056, allocations: 14.3 kB / 399.5 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.695e-05/0.07063, allocations: 20.5 kB / 399.6 MB, free: 11.79 MB / 378.7 MB Notification: Performance of SimCode: time 8.92e-07/0.07064, allocations: 0 / 399.6 MB, free: 11.79 MB / 378.7 MB Notification: Performance of Templates: time 0.01521/0.08585, allocations: 4.674 MB / 404.2 MB, free: 7.176 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=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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins/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.263767999014817]