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.001405/0.001405, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.001709/0.001709, allocations: 216.5 kB / 24.47 MB, free: 4.359 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.58/1.58, allocations: 230.2 MB / 257.8 MB, free: 8.496 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.2471/0.2471, allocations: 46.89 MB / 361.1 MB, free: 4.633 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.00239/0.00239, allocations: 79.86 kB / 0.4967 GB, free: 7.816 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4492/0.4516, allocations: 65.99 MB / 0.5612 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004766/0.4563, allocations: 2.938 MB / 0.5641 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.4584, allocations: 0.6999 MB / 0.5647 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002652/0.4587, allocations: 8 kB / 0.5648 GB, free: 1.367 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.4589, allocations: 51.44 kB / 0.5648 GB, free: 1.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002725/0.4592, allocations: 91.19 kB / 0.5649 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.4595, allocations: 91.86 kB / 0.565 GB, free: 1.137 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006157/0.4601, allocations: 418 kB / 0.5654 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003355/0.4604, allocations: 90.94 kB / 0.5655 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.4607, allocations: 151.5 kB / 0.5656 GB, free: 500 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002949/0.461, allocations: 167.2 kB / 0.5658 GB, free: 332 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.367e-05/0.461, allocations: 36 kB / 0.5658 GB, free: 296 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.409e-05/0.4611, allocations: 36 kB / 0.5658 GB, free: 260 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.4612, allocations: 79.73 kB / 0.5659 GB, free: 180 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.4614, allocations: 163.3 kB / 0.5661 GB, free: 16 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006714/0.4621, allocations: 394.4 kB / 0.5664 GB, free: 15.63 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.225e-05/0.4621, allocations: 7.922 kB / 0.5665 GB, free: 15.62 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4621, allocations: 4 kB / 0.5665 GB, free: 15.62 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.4621, allocations: 0 / 0.5665 GB, free: 15.62 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.001373/0.4635, allocations: 0.6351 MB / 0.5671 GB, free: 14.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.4635, allocations: 8.031 kB / 0.5671 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.191e-05/0.4636, allocations: 36.75 kB / 0.5671 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005618/0.4642, allocations: 277.2 kB / 0.5674 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.4642, allocations: 24.88 kB / 0.5674 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.885e-05/0.4643, allocations: 28.36 kB / 0.5674 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.4649, allocations: 328.8 kB / 0.5677 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.465, allocations: 0 / 0.5677 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.807e-05/0.465, allocations: 12 kB / 0.5678 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.465, allocations: 8 kB / 0.5678 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.4655, allocations: 246.1 kB / 0.568 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.4678, allocations: 1.242 MB / 0.5692 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008736/0.4687, allocations: 437.1 kB / 0.5696 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003413/0.469, allocations: 151.9 kB / 0.5698 GB, free: 11.99 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.4691, allocations: 4.234 kB / 0.5698 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.4691, allocations: 34.78 kB / 0.5698 GB, free: 11.94 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 2.816e-06/0.4691, allocations: 0 / 0.5698 GB, free: 11.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.003147/0.4723, allocations: 1.015 MB / 0.5708 GB, free: 10.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.4723, allocations: 59.39 kB / 0.5709 GB, free: 10.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.4726, allocations: 241 kB / 0.5711 GB, free: 10.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.449e-05/0.4727, allocations: 29.7 kB / 0.5711 GB, free: 10.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.4728, allocations: 164.7 kB / 0.5713 GB, free: 10.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.811e-05/0.4729, allocations: 95.16 kB / 0.5714 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.473, allocations: 53.7 kB / 0.5714 GB, free: 10.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.4732, allocations: 334.8 kB / 0.5717 GB, free: 9.871 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.4734, allocations: 111.9 kB / 0.5718 GB, free: 9.762 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.4737, allocations: 144 kB / 0.572 GB, free: 9.605 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004994/0.4742, allocations: 252.1 kB / 0.5722 GB, free: 9.344 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.4742, allocations: 0 / 0.5722 GB, free: 9.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001381/0.4756, allocations: 495.2 kB / 0.5727 GB, free: 8.848 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.4756, allocations: 4.062 kB / 0.5727 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.4756, allocations: 4 kB / 0.5727 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/0.4767, allocations: 237.5 kB / 0.5729 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.4769, allocations: 31.92 kB / 0.573 GB, free: 8.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005202/0.4821, allocations: 3.692 MB / 0.5766 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003317/0.4824, allocations: 35.8 kB / 0.5766 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.4824, allocations: 8 kB / 0.5766 GB, free: 4.559 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.0002796/0.4827, allocations: 141.9 kB / 0.5767 GB, free: 4.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.647e-05/0.4828, allocations: 31.73 kB / 0.5768 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.6e-05/0.4829, allocations: 38.86 kB / 0.5768 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.4829, allocations: 0 / 0.5768 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.198e-05/0.4829, allocations: 7.938 kB / 0.5768 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4829, allocations: 0 / 0.5768 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001967/0.4849, allocations: 0.8757 MB / 0.5777 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.4849, allocations: 7.984 kB / 0.5777 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.8e-05/0.485, allocations: 16 kB / 0.5777 GB, free: 3.375 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009504/0.4859, allocations: 237.9 kB / 0.5779 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.4859, allocations: 4 kB / 0.5779 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004918/0.4909, allocations: 3.689 MB / 0.5815 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.4909, allocations: 3.938 kB / 0.5815 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.4922, allocations: 0.5252 MB / 0.582 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001901/0.4924, allocations: 124.8 kB / 0.5822 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.4924, allocations: 4 kB / 0.5822 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.4927, allocations: 31.97 kB / 0.5822 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.4928, allocations: 27.95 kB / 0.5822 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.4928, allocations: 12 kB / 0.5822 GB, free: 14.38 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.493, allocations: 172.5 kB / 0.5824 GB, free: 14.22 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.493, allocations: 0 / 0.5824 GB, free: 14.22 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005513/0.4936, allocations: 107.9 kB / 0.5825 GB, free: 14.11 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.0001865/0.4938, allocations: 115.1 kB / 0.5826 GB, free: 13.99 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.495, allocations: 0.5363 MB / 0.5831 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.405e-06/0.4951, allocations: 4 kB / 0.5831 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006925/0.4957, allocations: 421 kB / 0.5835 GB, free: 12.99 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004067/0.4962, allocations: 60.3 kB / 0.5836 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.4973, allocations: 0.511 MB / 0.5841 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004985/0.4977, allocations: 0.7678 MB / 0.5848 GB, free: 11.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.811e-05/0.4978, allocations: 26.28 kB / 0.5849 GB, free: 11.58 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.949e-05/0.4979, allocations: 15.44 kB / 0.5849 GB, free: 11.56 MB / 430.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4979, allocations: 3.938 kB / 0.5849 GB, free: 11.56 MB / 430.1 MB Notification: Performance of Templates: time 0.01058/0.5085, allocations: 4.77 MB / 0.5895 GB, free: 6.828 MB / 430.1 MB " [Timeout remaining time 659] 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 cvode -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.731603429187089]