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.00177/0.00177, allocations: 85.17 kB / 20.68 MB, free: 1.023 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.00218/0.00218, allocations: 168.4 kB / 23.95 MB, free: 4.16 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.353/1.353, allocations: 177.1 MB / 204.3 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 179] 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.2085/0.2085, allocations: 32.82 MB / 293.5 MB, free: 12 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: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 440.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.276e-05/2.394e-05, allocations: 9.312 kB / 440.1 MB, free: 8.148 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003648/0.003671, allocations: 2.717 MB / 442.8 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.004694, allocations: 0.6621 MB / 443.5 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.004806, allocations: 8 kB / 443.5 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.004957, allocations: 51.5 kB / 443.5 MB, free: 4.688 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001558/0.005113, allocations: 95.06 kB / 443.6 MB, free: 4.594 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00017/0.005283, allocations: 91.86 kB / 443.7 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004051/0.005688, allocations: 429.9 kB / 444.1 MB, free: 4.082 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.005867, allocations: 83.34 kB / 444.2 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.006104, allocations: 223.5 kB / 444.4 MB, free: 3.777 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.006288, allocations: 127.6 kB / 444.5 MB, free: 3.652 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.47e-05/0.006343, allocations: 32 kB / 444.6 MB, free: 3.621 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.841e-05/0.006401, allocations: 36 kB / 444.6 MB, free: 3.586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.833e-05/0.00647, allocations: 71.73 kB / 444.7 MB, free: 3.516 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.006612, allocations: 119.7 kB / 444.8 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.007023, allocations: 414.7 kB / 445.2 MB, free: 2.992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.007025, allocations: 0 / 445.2 MB, free: 2.992 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.007026, allocations: 0 / 445.2 MB, free: 2.992 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.007031, allocations: 4 kB / 445.2 MB, free: 2.988 MB / 366.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.0009518/0.007983, allocations: 0.556 MB / 445.8 MB, free: 2.402 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.008016, allocations: 15.98 kB / 445.8 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.91e-05/0.008085, allocations: 36.7 kB / 445.8 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.008409, allocations: 218.4 kB / 446 MB, free: 2.113 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.008436, allocations: 21.03 kB / 446 MB, free: 2.094 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.008473, allocations: 24.38 kB / 446.1 MB, free: 2.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006282/0.009101, allocations: 433.3 kB / 446.5 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.009113, allocations: 4.125 kB / 446.5 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.009141, allocations: 8.375 kB / 446.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/0.009157, allocations: 15.94 kB / 446.5 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004903/0.009647, allocations: 246.4 kB / 446.8 MB, free: 1.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.01155, allocations: 1.096 MB / 447.9 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1714/0.1829, allocations: 274.8 kB / 448.1 MB, free: 21.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003391/0.1832, allocations: 141.9 kB / 448.3 MB, free: 21.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.1833, allocations: 3.703 kB / 448.3 MB, free: 21.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.1833, allocations: 34.61 kB / 448.3 MB, free: 21.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.974e-06/0.1833, allocations: 0 / 448.3 MB, free: 21.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.002935/0.1862, allocations: 0.8656 MB / 449.2 MB, free: 21.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.1863, allocations: 54.91 kB / 449.2 MB, free: 21.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.1865, allocations: 212.2 kB / 449.4 MB, free: 21.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.1865, allocations: 32.11 kB / 449.5 MB, free: 21.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.1866, allocations: 175 kB / 449.6 MB, free: 21.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.859e-05/0.1866, allocations: 97.19 kB / 449.7 MB, free: 21.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.408e-05/0.1867, allocations: 52.78 kB / 449.8 MB, free: 21.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.764e-05/0.1868, allocations: 334.6 kB / 450.1 MB, free: 20.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002205/0.187, allocations: 104.8 kB / 450.2 MB, free: 20.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.1872, allocations: 143.6 kB / 450.3 MB, free: 20.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004349/0.1877, allocations: 254.4 kB / 450.6 MB, free: 20.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1877, allocations: 0 / 450.6 MB, free: 20.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001065/0.1887, allocations: 482 kB / 451.1 MB, free: 20.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.1887, allocations: 5.719 kB / 451.1 MB, free: 20.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1888, allocations: 2.156 kB / 451.1 MB, free: 20.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009539/0.1897, allocations: 243 kB / 451.3 MB, free: 20.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.1898, allocations: 33.7 kB / 451.3 MB, free: 20.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003323/0.1932, allocations: 3.394 MB / 454.7 MB, free: 17.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.1934, allocations: 40.7 kB / 454.8 MB, free: 17.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.1934, allocations: 10.97 kB / 454.8 MB, free: 17.54 MB / 366.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.0001075/0.1935, allocations: 139.2 kB / 454.9 MB, free: 17.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.727e-05/0.1935, allocations: 32.41 kB / 455 MB, free: 17.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.992e-05/0.1936, allocations: 34.91 kB / 455 MB, free: 17.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.1936, allocations: 2.281 kB / 455 MB, free: 17.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.1936, allocations: 9.375 kB / 455 MB, free: 17.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1936, allocations: 6.906 kB / 455 MB, free: 17.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001374/0.195, allocations: 0.7661 MB / 455.8 MB, free: 16.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.195, allocations: 0 / 455.8 MB, free: 16.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.911e-05/0.1951, allocations: 20.31 kB / 455.8 MB, free: 16.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008299/0.1959, allocations: 236.6 kB / 456 MB, free: 16.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.1959, allocations: 5.375 kB / 456 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003095/0.199, allocations: 3.395 MB / 459.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.199, allocations: 0.6094 kB / 459.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009871/0.2, allocations: 0.532 MB / 460 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.096e-05/0.2001, allocations: 40.77 kB / 460 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.966e-05/0.2001, allocations: 10.66 kB / 460 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.2003, allocations: 25.98 kB / 460 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.941e-05/0.2004, allocations: 32.16 kB / 460.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.2004, allocations: 9.375 kB / 460.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001077/0.2005, allocations: 153.8 kB / 460.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2005, allocations: 0 / 460.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003903/0.2009, allocations: 111.5 kB / 460.3 MB, free: 13.62 MB / 366.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.214e-05/0.201, allocations: 107 kB / 460.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008591/0.2019, allocations: 0.5417 MB / 461 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2019, allocations: 0.75 kB / 461 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005186/0.2024, allocations: 418.8 kB / 461.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.2027, allocations: 56.8 kB / 461.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007572/0.2035, allocations: 0.4932 MB / 461.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/0.2036, allocations: 158.1 kB / 462.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.83e-05/0.2037, allocations: 22.11 kB / 462.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.298e-05/0.2037, allocations: 17.59 kB / 462.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.2037, allocations: 0 / 462.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of Templates: time 0.009352/0.2131, allocations: 4.631 MB / 466.8 MB, free: 11.95 MB / 366.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins/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: 4.76196863502264]