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.00176/0.00176, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.002206/0.002206, allocations: 209.9 kB / 24.49 MB, free: 4.148 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.543/1.543, allocations: 230.6 MB / 258.3 MB, free: 7.965 MB / 206.1 MB " [Timeout remaining time 178] 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.2443/0.2443, allocations: 44.91 MB / 359.6 MB, free: 6.262 MB / 286.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002339/0.002339, allocations: 71.89 kB / 0.4943 GB, free: 10.21 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3019, allocations: 65.46 MB / 0.5582 GB, free: 7.688 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004389/0.3063, allocations: 2.961 MB / 0.5611 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.3076, allocations: 0.6969 MB / 0.5618 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.3077, allocations: 7.938 kB / 0.5618 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001725/0.3079, allocations: 51.5 kB / 0.5619 GB, free: 3.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.3081, allocations: 95.12 kB / 0.562 GB, free: 3.898 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.3083, allocations: 87.88 kB / 0.562 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000483/0.3088, allocations: 410 kB / 0.5624 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.309, allocations: 91.34 kB / 0.5625 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.3092, allocations: 159.5 kB / 0.5627 GB, free: 3.164 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.3094, allocations: 167.3 kB / 0.5628 GB, free: 3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.145e-05/0.3095, allocations: 36 kB / 0.5629 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.479e-05/0.3095, allocations: 32 kB / 0.5629 GB, free: 2.934 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.806e-05/0.3096, allocations: 75.77 kB / 0.563 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.3098, allocations: 175.1 kB / 0.5631 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004328/0.3102, allocations: 389.2 kB / 0.5635 GB, free: 2.309 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3102, allocations: 4 kB / 0.5635 GB, free: 2.305 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.3102, allocations: 0 / 0.5635 GB, free: 2.305 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.3102, allocations: 0 / 0.5635 GB, free: 2.305 MB / 398.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.001056/0.3113, allocations: 0.5638 MB / 0.5641 GB, free: 1.711 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3113, allocations: 11.98 kB / 0.5641 GB, free: 1.699 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.886e-05/0.3114, allocations: 40.73 kB / 0.5641 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003937/0.3118, allocations: 218.6 kB / 0.5643 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.3118, allocations: 17.03 kB / 0.5643 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.459e-05/0.3118, allocations: 28.38 kB / 0.5644 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006057/0.3124, allocations: 326.2 kB / 0.5647 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.3124, allocations: 0 / 0.5647 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.3125, allocations: 20 kB / 0.5647 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.3125, allocations: 4 kB / 0.5647 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005147/0.313, allocations: 242.4 kB / 0.5649 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.3151, allocations: 1.212 MB / 0.5661 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006904/0.3158, allocations: 293.1 kB / 0.5664 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/0.3161, allocations: 145.2 kB / 0.5665 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.3162, allocations: 4.234 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.3162, allocations: 30.8 kB / 0.5666 GB, free: 15.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.443e-06/0.3162, allocations: 0 / 0.5666 GB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002874/0.3191, allocations: 0.8639 MB / 0.5674 GB, free: 14.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.3191, allocations: 55.41 kB / 0.5675 GB, free: 14.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.3194, allocations: 241.1 kB / 0.5677 GB, free: 13.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.3194, allocations: 33.64 kB / 0.5677 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.3196, allocations: 172.6 kB / 0.5679 GB, free: 13.61 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.054e-05/0.3196, allocations: 95.16 kB / 0.568 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.3197, allocations: 53.64 kB / 0.568 GB, free: 13.46 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3199, allocations: 338.8 kB / 0.5683 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002357/0.3201, allocations: 103.9 kB / 0.5684 GB, free: 13.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002743/0.3204, allocations: 144.8 kB / 0.5686 GB, free: 12.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004861/0.3209, allocations: 252.7 kB / 0.5688 GB, free: 12.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3209, allocations: 0 / 0.5688 GB, free: 12.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001147/0.322, allocations: 494.7 kB / 0.5693 GB, free: 12.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3221, allocations: 4 kB / 0.5693 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3221, allocations: 3.938 kB / 0.5693 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000996/0.3231, allocations: 233.5 kB / 0.5695 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.3232, allocations: 35.98 kB / 0.5696 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0045/0.3277, allocations: 3.486 MB / 0.573 GB, free: 8.117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.3279, allocations: 31.83 kB / 0.573 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.328, allocations: 11.98 kB / 0.573 GB, free: 8.074 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.000181/0.3282, allocations: 139.7 kB / 0.5731 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.898e-05/0.3282, allocations: 27.86 kB / 0.5732 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.271e-05/0.3283, allocations: 34.95 kB / 0.5732 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.3283, allocations: 8.062 kB / 0.5732 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.3283, allocations: 3.938 kB / 0.5732 GB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3283, allocations: 4 kB / 0.5732 GB, free: 7.848 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0017/0.33, allocations: 0.8562 MB / 0.5741 GB, free: 6.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.33, allocations: 0 / 0.5741 GB, free: 6.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.55e-05/0.3301, allocations: 15.98 kB / 0.5741 GB, free: 6.922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009034/0.331, allocations: 237.5 kB / 0.5743 GB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.331, allocations: 4 kB / 0.5743 GB, free: 6.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004349/0.3354, allocations: 3.482 MB / 0.5777 GB, free: 2.969 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3354, allocations: 3.938 kB / 0.5777 GB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.3365, allocations: 0.533 MB / 0.5782 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.3366, allocations: 51.72 kB / 0.5783 GB, free: 2.355 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.3367, allocations: 4 kB / 0.5783 GB, free: 2.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.3369, allocations: 23.98 kB / 0.5783 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.238e-05/0.337, allocations: 31.94 kB / 0.5783 GB, free: 2.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.337, allocations: 8 kB / 0.5783 GB, free: 2.289 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000195/0.3372, allocations: 172.5 kB / 0.5785 GB, free: 2.121 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3372, allocations: 7.938 kB / 0.5785 GB, free: 2.113 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004551/0.3377, allocations: 111.8 kB / 0.5786 GB, free: 2.004 MB / 414.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 0.0001164/0.3378, allocations: 99.25 kB / 0.5787 GB, free: 1.898 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.3389, allocations: 0.5365 MB / 0.5792 GB, free: 1.336 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3389, allocations: 0 / 0.5792 GB, free: 1.336 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006416/0.3395, allocations: 433.1 kB / 0.5796 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000376/0.3399, allocations: 40.42 kB / 0.5797 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.3409, allocations: 0.5487 MB / 0.5802 GB, free: 272 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.3414, allocations: 0.7639 MB / 0.581 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.511e-05/0.3414, allocations: 15.44 kB / 0.581 GB, free: 15.46 MB / 430.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3414, allocations: 0 / 0.581 GB, free: 15.46 MB / 430.1 MB Notification: Performance of Templates: time 0.008574/0.35, allocations: 5.593 MB / 0.5864 GB, free: 9.875 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/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: 8.598591974936426]