Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001366/0.001366, allocations: 89.14 kB / 20.68 MB, free: 1.02 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.001424/0.001424, allocations: 158.8 kB / 23.95 MB, free: 4.152 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.586/1.586, allocations: 177 MB / 204.1 MB, free: 9.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2497/0.2497, allocations: 34.26 MB / 294.8 MB, free: 14.52 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 442.6 MB, free: 5.312 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.387e-05/2.557e-05, allocations: 2.281 kB / 442.6 MB, free: 5.309 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00411/0.004135, allocations: 2.723 MB / 445.4 MB, free: 2.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.005398, allocations: 0.6582 MB / 446 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.005538, allocations: 11.94 kB / 446 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.005709, allocations: 55.44 kB / 446.1 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000185/0.005894, allocations: 107 kB / 446.2 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002014/0.006095, allocations: 91.86 kB / 446.3 MB, free: 1.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004921/0.006587, allocations: 422.1 kB / 446.7 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.00678, allocations: 87.34 kB / 446.8 MB, free: 1.141 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002701/0.00705, allocations: 223.6 kB / 447 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.007256, allocations: 119.7 kB / 447.1 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.423e-05/0.00732, allocations: 36 kB / 447.2 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.189e-05/0.007382, allocations: 32 kB / 447.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.498e-05/0.007457, allocations: 75.73 kB / 447.3 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.007615, allocations: 127.7 kB / 447.4 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004532/0.008068, allocations: 410.6 kB / 447.8 MB, free: 140 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.008073, allocations: 4 kB / 447.8 MB, free: 136 kB / 366.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.008074, allocations: 0 / 447.8 MB, free: 136 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.00808, allocations: 0 / 447.8 MB, free: 136 kB / 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.1898/0.1979, allocations: 0.5564 MB / 448.3 MB, free: 19.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.1979, allocations: 10.78 kB / 448.4 MB, free: 19.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.391e-05/0.198, allocations: 39.16 kB / 448.4 MB, free: 19.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004463/0.1985, allocations: 215.7 kB / 448.6 MB, free: 19.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.1985, allocations: 21.12 kB / 448.6 MB, free: 19.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.394e-05/0.1985, allocations: 27.31 kB / 448.7 MB, free: 19.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000704/0.1992, allocations: 426.2 kB / 449.1 MB, free: 19.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.1993, allocations: 192 / 449.1 MB, free: 19.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.781e-05/0.1993, allocations: 11.94 kB / 449.1 MB, free: 19.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.1993, allocations: 12.69 kB / 449.1 MB, free: 19.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005875/0.1999, allocations: 244.8 kB / 449.3 MB, free: 19.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.2019, allocations: 1.092 MB / 450.4 MB, free: 18.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007564/0.2027, allocations: 274.7 kB / 450.7 MB, free: 18.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002902/0.203, allocations: 143.3 kB / 450.8 MB, free: 18.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.203, allocations: 10.67 kB / 450.8 MB, free: 18.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.709e-05/0.203, allocations: 35.89 kB / 450.9 MB, free: 18.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.402e-06/0.203, allocations: 0 / 450.9 MB, free: 18.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003094/0.2061, allocations: 0.8593 MB / 451.7 MB, free: 17.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.118e-05/0.2061, allocations: 60.09 kB / 451.8 MB, free: 17.81 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.2064, allocations: 217.3 kB / 452 MB, free: 17.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.2064, allocations: 31.08 kB / 452 MB, free: 17.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.508e-05/0.2065, allocations: 169.6 kB / 452.2 MB, free: 17.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.928e-05/0.2066, allocations: 96.86 kB / 452.3 MB, free: 17.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.649e-05/0.2067, allocations: 56.62 kB / 452.4 MB, free: 17.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.808e-05/0.2067, allocations: 335.5 kB / 452.7 MB, free: 17.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002602/0.207, allocations: 99.83 kB / 452.8 MB, free: 17.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000257/0.2072, allocations: 153.9 kB / 452.9 MB, free: 16.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004509/0.2077, allocations: 253.7 kB / 453.2 MB, free: 16.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.2077, allocations: 0 / 453.2 MB, free: 16.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001105/0.2088, allocations: 478.7 kB / 453.6 MB, free: 16.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.2088, allocations: 5.438 kB / 453.7 MB, free: 16.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2088, allocations: 1.125 kB / 453.7 MB, free: 16.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.2098, allocations: 239.1 kB / 453.9 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.21, allocations: 34.97 kB / 453.9 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003568/0.2136, allocations: 3.403 MB / 457.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.2138, allocations: 35.94 kB / 457.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.2138, allocations: 8.203 kB / 457.4 MB, free: 13.73 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.0001421/0.214, allocations: 147.2 kB / 457.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.566e-05/0.214, allocations: 29.23 kB / 457.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.859e-05/0.2141, allocations: 33.61 kB / 457.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2141, allocations: 3.766 kB / 457.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.2141, allocations: 3.781 kB / 457.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.2141, allocations: 1.312 kB / 457.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.2156, allocations: 0.7677 MB / 458.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.2156, allocations: 1.406 kB / 458.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.812e-05/0.2157, allocations: 23.2 kB / 458.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009382/0.2167, allocations: 237.8 kB / 458.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.2167, allocations: 5.641 kB / 458.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003431/0.2201, allocations: 3.408 MB / 462 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2201, allocations: 0.5625 kB / 462 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.2212, allocations: 0.5232 MB / 462.5 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.2213, allocations: 46.42 kB / 462.6 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.265e-05/0.2214, allocations: 6.172 kB / 462.6 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.2216, allocations: 25.8 kB / 462.6 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.157e-05/0.2217, allocations: 36.45 kB / 462.7 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.2217, allocations: 13.17 kB / 462.7 MB, free: 9.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001269/0.2219, allocations: 152.8 kB / 462.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2219, allocations: 1.188 kB / 462.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004663/0.2223, allocations: 107 kB / 462.9 MB, free: 9.793 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 0.0001051/0.2224, allocations: 99.66 kB / 463 MB, free: 9.703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009868/0.2234, allocations: 0.5386 MB / 463.6 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2234, allocations: 0 / 463.6 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005599/0.224, allocations: 430.2 kB / 464 MB, free: 9.062 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003633/0.2243, allocations: 40.27 kB / 464 MB, free: 9.047 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008592/0.2252, allocations: 0.5025 MB / 464.5 MB, free: 8.738 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001697/0.2254, allocations: 157 kB / 464.7 MB, free: 8.656 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.661e-05/0.2255, allocations: 18.34 kB / 464.7 MB, free: 8.652 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.55e-05/0.2255, allocations: 19.44 kB / 464.7 MB, free: 8.645 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2255, allocations: 0 / 464.7 MB, free: 8.645 MB / 366.1 MB Notification: Performance of Templates: time 0.01008/0.2356, allocations: 4.636 MB / 469.3 MB, free: 7.918 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.232988242059946]