Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 112.4 kB / 21.17 MB, free: 0.6172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 204.1 kB / 24.46 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 230.2 MB / 257.8 MB, free: 8.516 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.3527/0.3527, allocations: 46.89 MB / 361.1 MB, free: 4.746 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002329/0.002329, allocations: 84.05 kB / 0.4967 GB, free: 7.859 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3245, allocations: 65.98 MB / 0.5612 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004481/0.329, allocations: 2.946 MB / 0.5641 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.3303, allocations: 0.6961 MB / 0.5647 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.3304, allocations: 11.94 kB / 0.5647 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.3306, allocations: 47.5 kB / 0.5648 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.3308, allocations: 99.12 kB / 0.5649 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.331, allocations: 91.86 kB / 0.565 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.3314, allocations: 418.1 kB / 0.5654 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.3317, allocations: 90.94 kB / 0.5655 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/0.3318, allocations: 151.5 kB / 0.5656 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.3321, allocations: 167.3 kB / 0.5658 GB, free: 352 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.324e-05/0.3321, allocations: 40 kB / 0.5658 GB, free: 312 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.132e-05/0.3322, allocations: 32 kB / 0.5658 GB, free: 280 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.23e-05/0.3322, allocations: 71.75 kB / 0.5659 GB, free: 208 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.3324, allocations: 171.2 kB / 0.5661 GB, free: 36 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004593/0.3329, allocations: 398.4 kB / 0.5664 GB, free: 15.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3329, allocations: 0 / 0.5664 GB, free: 15.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3329, allocations: 0 / 0.5664 GB, free: 15.64 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3329, allocations: 0 / 0.5664 GB, free: 15.64 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.001156/0.334, allocations: 0.639 MB / 0.5671 GB, free: 14.96 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.3341, allocations: 8.031 kB / 0.5671 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.029e-05/0.3341, allocations: 36.75 kB / 0.5671 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004395/0.3346, allocations: 277.3 kB / 0.5674 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/0.3346, allocations: 20.88 kB / 0.5674 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.574e-05/0.3347, allocations: 28.38 kB / 0.5674 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006208/0.3353, allocations: 328.8 kB / 0.5677 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.3353, allocations: 4 kB / 0.5677 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.625e-05/0.3353, allocations: 16 kB / 0.5678 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.3353, allocations: 4 kB / 0.5678 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005456/0.3359, allocations: 242.1 kB / 0.568 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.338, allocations: 1.242 MB / 0.5692 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008327/0.3389, allocations: 445 kB / 0.5696 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003261/0.3392, allocations: 145.2 kB / 0.5698 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.3392, allocations: 4.234 kB / 0.5698 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.3393, allocations: 38.78 kB / 0.5698 GB, free: 11.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.493e-06/0.3393, allocations: 4 kB / 0.5698 GB, free: 11.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.003127/0.3424, allocations: 1.011 MB / 0.5708 GB, free: 10.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.3424, allocations: 55.41 kB / 0.5709 GB, free: 10.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00028/0.3427, allocations: 241 kB / 0.5711 GB, free: 10.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.3428, allocations: 29.7 kB / 0.5711 GB, free: 10.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.3429, allocations: 168.6 kB / 0.5713 GB, free: 10.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.829e-05/0.343, allocations: 95.17 kB / 0.5714 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.471e-05/0.3431, allocations: 61.58 kB / 0.5714 GB, free: 10.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.3432, allocations: 334.8 kB / 0.5717 GB, free: 9.883 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002484/0.3435, allocations: 103.9 kB / 0.5718 GB, free: 9.781 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002786/0.3438, allocations: 144 kB / 0.572 GB, free: 9.625 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000505/0.3443, allocations: 252.1 kB / 0.5722 GB, free: 9.363 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3443, allocations: 4 kB / 0.5722 GB, free: 9.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001189/0.3455, allocations: 491.2 kB / 0.5727 GB, free: 8.867 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.3455, allocations: 8 kB / 0.5727 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3455, allocations: 0 / 0.5727 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.3465, allocations: 245.5 kB / 0.5729 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.3467, allocations: 31.98 kB / 0.573 GB, free: 8.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004585/0.3512, allocations: 3.681 MB / 0.5766 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.3515, allocations: 35.8 kB / 0.5766 GB, free: 4.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.3515, allocations: 15.94 kB / 0.5766 GB, free: 4.574 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.0001563/0.3516, allocations: 141.8 kB / 0.5767 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.584e-05/0.3517, allocations: 23.86 kB / 0.5768 GB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.114e-05/0.3517, allocations: 42.92 kB / 0.5768 GB, free: 4.363 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3518, allocations: 0 / 0.5768 GB, free: 4.363 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/0.3518, allocations: 7.938 kB / 0.5768 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3518, allocations: 0 / 0.5768 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001663/0.3534, allocations: 0.8797 MB / 0.5777 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3534, allocations: 0 / 0.5777 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.54e-05/0.3535, allocations: 23.98 kB / 0.5777 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008803/0.3544, allocations: 233.5 kB / 0.5779 GB, free: 3.156 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.3544, allocations: 4 kB / 0.5779 GB, free: 3.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004616/0.359, allocations: 3.681 MB / 0.5815 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.359, allocations: 3.938 kB / 0.5815 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.3602, allocations: 0.5329 MB / 0.582 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.3603, allocations: 132.8 kB / 0.5822 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.3603, allocations: 0 / 0.5822 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.3606, allocations: 27.97 kB / 0.5822 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.178e-05/0.3607, allocations: 35.95 kB / 0.5822 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.3607, allocations: 7.938 kB / 0.5822 GB, free: 14.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.3609, allocations: 180.5 kB / 0.5824 GB, free: 14.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3609, allocations: 0 / 0.5824 GB, free: 14.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004408/0.3613, allocations: 111.8 kB / 0.5825 GB, free: 14.12 MB / 430.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.0001493/0.3615, allocations: 99.25 kB / 0.5826 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.3625, allocations: 0.5441 MB / 0.5831 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3625, allocations: 0 / 0.5831 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006418/0.3631, allocations: 425.1 kB / 0.5835 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000372/0.3635, allocations: 51.67 kB / 0.5836 GB, free: 12.96 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.3645, allocations: 0.5151 MB / 0.5841 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004288/0.3649, allocations: 0.7678 MB / 0.5848 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.658e-05/0.365, allocations: 22.3 kB / 0.5849 GB, free: 11.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.055e-05/0.3651, allocations: 19.42 kB / 0.5849 GB, free: 11.58 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3651, allocations: 0 / 0.5849 GB, free: 11.58 MB / 430.1 MB Notification: Performance of Templates: time 0.009829/0.3749, allocations: 4.779 MB / 0.5896 GB, free: 6.844 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.357326935976744]