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.001289/0.001289, allocations: 110.8 kB / 21.19 MB, free: 0.6602 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.001417/0.001417, allocations: 205.2 kB / 24.49 MB, free: 3.957 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.431/1.431, allocations: 230.6 MB / 258.3 MB, free: 7.75 MB / 206.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.2265/0.2265, allocations: 46.96 MB / 361.6 MB, free: 4.023 MB / 286.1 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 0.001993/0.001993, allocations: 67.91 kB / 0.4973 GB, free: 7.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2908, allocations: 66.04 MB / 0.5618 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004143/0.2949, allocations: 2.704 MB / 0.5645 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.2962, allocations: 0.662 MB / 0.5651 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.2963, allocations: 7.938 kB / 0.5651 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.2965, allocations: 51.5 kB / 0.5652 GB, free: 0.707 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.2966, allocations: 91.12 kB / 0.5653 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001785/0.2968, allocations: 95.86 kB / 0.5653 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004517/0.2973, allocations: 410.1 kB / 0.5657 GB, free: 124 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.2975, allocations: 99.33 kB / 0.5658 GB, free: 24 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.2976, allocations: 151.5 kB / 0.566 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.2978, allocations: 163.3 kB / 0.5661 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.239e-05/0.2979, allocations: 36 kB / 0.5662 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.348e-05/0.298, allocations: 36 kB / 0.5662 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.719e-05/0.298, allocations: 71.75 kB / 0.5663 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.2982, allocations: 143.4 kB / 0.5664 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004211/0.2986, allocations: 397.1 kB / 0.5668 GB, free: 15.05 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2986, allocations: 4 kB / 0.5668 GB, free: 15.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2986, allocations: 4 kB / 0.5668 GB, free: 15.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2986, allocations: 0 / 0.5668 GB, free: 15.04 MB / 414.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.001092/0.2997, allocations: 0.5638 MB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.2997, allocations: 8.031 kB / 0.5674 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.407e-05/0.2998, allocations: 32.75 kB / 0.5674 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.3002, allocations: 218.6 kB / 0.5676 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.3002, allocations: 21.03 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.3003, allocations: 28.31 kB / 0.5676 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006704/0.3009, allocations: 437.1 kB / 0.5681 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.301, allocations: 0 / 0.5681 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.301, allocations: 12 kB / 0.5681 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.301, allocations: 4 kB / 0.5681 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005257/0.3015, allocations: 242.4 kB / 0.5683 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002003/0.3035, allocations: 1.084 MB / 0.5694 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007064/0.3042, allocations: 306.8 kB / 0.5697 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.3045, allocations: 140.1 kB / 0.5698 GB, free: 11.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.3046, allocations: 8.172 kB / 0.5698 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.3046, allocations: 34.8 kB / 0.5698 GB, free: 11.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.653e-06/0.3046, allocations: 0 / 0.5698 GB, free: 11.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002883/0.3075, allocations: 0.8562 MB / 0.5707 GB, free: 10.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/0.3075, allocations: 51.41 kB / 0.5707 GB, free: 10.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.3077, allocations: 213 kB / 0.5709 GB, free: 10.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.169e-05/0.3078, allocations: 37.64 kB / 0.571 GB, free: 10.56 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.3079, allocations: 176.5 kB / 0.5711 GB, free: 10.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.87e-05/0.308, allocations: 95.2 kB / 0.5712 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.3081, allocations: 57.66 kB / 0.5713 GB, free: 10.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3082, allocations: 330.8 kB / 0.5716 GB, free: 9.898 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002392/0.3085, allocations: 103.9 kB / 0.5717 GB, free: 9.797 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002599/0.3087, allocations: 148.8 kB / 0.5718 GB, free: 9.637 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004713/0.3092, allocations: 248.7 kB / 0.5721 GB, free: 9.379 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3092, allocations: 0 / 0.5721 GB, free: 9.379 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001165/0.3104, allocations: 490.7 kB / 0.5725 GB, free: 8.887 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.3104, allocations: 8 kB / 0.5725 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3104, allocations: 0 / 0.5725 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009966/0.3114, allocations: 237.5 kB / 0.5728 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.3116, allocations: 35.98 kB / 0.5728 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004287/0.3159, allocations: 3.405 MB / 0.5761 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.3161, allocations: 31.77 kB / 0.5762 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.3161, allocations: 12.08 kB / 0.5762 GB, free: 4.957 MB / 414.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.0001765/0.3163, allocations: 149.7 kB / 0.5763 GB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.17e-05/0.3163, allocations: 23.86 kB / 0.5763 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.816e-05/0.3164, allocations: 38.64 kB / 0.5764 GB, free: 4.738 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3164, allocations: 0 / 0.5764 GB, free: 4.738 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3164, allocations: 0 / 0.5764 GB, free: 4.738 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.3165, allocations: 43.77 kB / 0.5764 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.3165, allocations: 8 kB / 0.5764 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/0.3168, allocations: 27.91 kB / 0.5764 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.083e-05/0.3169, allocations: 35.92 kB / 0.5765 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001392/0.3183, allocations: 0.543 MB / 0.577 GB, free: 4.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008211/0.3191, allocations: 0.542 MB / 0.5775 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002053/0.3193, allocations: 87.92 kB / 0.5776 GB, free: 3.426 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001431/0.3194, allocations: 151.2 kB / 0.5778 GB, free: 3.277 MB / 414.1 MB Notification: Performance of Backend: time 8.82e-07/0.3194, allocations: 0 / 0.5778 GB, free: 3.277 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.3205, allocations: 0.5333 MB / 0.5783 GB, free: 2.711 MB / 414.1 MB Notification: Performance of SimCode: time 0.001134/0.3217, allocations: 1.026 MB / 0.5793 GB, free: 1.641 MB / 414.1 MB Notification: Performance of Templates: time 0.00975/0.3314, allocations: 4.895 MB / 0.5841 GB, free: 12.81 MB / 430.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 -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: 4.964919400001236]