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.001024/0.001024, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.001059/0.001059, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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.05/1.05, allocations: 177 MB / 204.8 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] 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.3229/0.3229, allocations: 34.86 MB / 296.3 MB, free: 0.5391 MB / 266.7 MB " [Timeout remaining time 180] 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.312e-06/1.312e-06, allocations: 0 / 378.8 MB, free: 2.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.395e-05/1.526e-05, allocations: 2.312 kB / 378.8 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.0028/0.002815, allocations: 2.938 MB / 381.7 MB, free: 15.15 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008049/0.00362, allocations: 0.6892 MB / 382.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.003731, allocations: 11.94 kB / 382.4 MB, free: 14.44 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.003871, allocations: 55.42 kB / 382.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.003984, allocations: 103.1 kB / 382.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001393/0.004123, allocations: 91.86 kB / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.004404, allocations: 426.1 kB / 383.1 MB, free: 13.78 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.004567, allocations: 83.34 kB / 383.1 MB, free: 13.69 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.004725, allocations: 227.6 kB / 383.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.004857, allocations: 119.7 kB / 383.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.37e-05/0.004901, allocations: 40 kB / 383.5 MB, free: 13.31 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.643e-05/0.004937, allocations: 36 kB / 383.5 MB, free: 13.28 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.949e-05/0.004987, allocations: 75.73 kB / 383.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.343e-05/0.00508, allocations: 119.7 kB / 383.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002848/0.005365, allocations: 271 kB / 384 MB, free: 12.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.005368, allocations: 0 / 384 MB, free: 12.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.005368, allocations: 0 / 384 MB, free: 12.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.005374, allocations: 0 / 384 MB, free: 12.82 MB / 362.7 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.0006975/0.006071, allocations: 0.652 MB / 384.7 MB, free: 12.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.006107, allocations: 12.03 kB / 384.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.185e-05/0.006179, allocations: 56.7 kB / 384.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.006407, allocations: 234 kB / 385 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.006431, allocations: 21.03 kB / 385 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.006459, allocations: 24.38 kB / 385 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003429/0.006802, allocations: 370.5 kB / 385.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.006812, allocations: 192 / 385.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.006837, allocations: 16.38 kB / 385.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.006847, allocations: 7.938 kB / 385.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.007021, allocations: 123.8 kB / 385.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.008112, allocations: 1.171 MB / 386.7 MB, free: 9.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.008432, allocations: 235.6 kB / 386.9 MB, free: 9.738 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001226/0.008554, allocations: 96.11 kB / 387 MB, free: 9.641 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.008567, allocations: 8.234 kB / 387 MB, free: 9.633 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.008588, allocations: 41.62 kB / 387 MB, free: 9.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.072e-06/0.00859, allocations: 0 / 387 MB, free: 9.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001343/0.009933, allocations: 0.6003 MB / 387.6 MB, free: 8.969 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.546e-05/0.009958, allocations: 59.41 kB / 387.7 MB, free: 8.898 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.01011, allocations: 270.7 kB / 388 MB, free: 8.617 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.01012, allocations: 29.7 kB / 388 MB, free: 8.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.667e-05/0.01021, allocations: 227.2 kB / 388.2 MB, free: 8.355 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.811e-05/0.01026, allocations: 87.19 kB / 388.3 MB, free: 8.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.994e-05/0.01032, allocations: 63.31 kB / 388.4 MB, free: 8.199 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.01042, allocations: 0.5001 MB / 388.9 MB, free: 7.688 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.085e-05/0.01049, allocations: 47.97 kB / 388.9 MB, free: 7.641 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.718e-05/0.01059, allocations: 114.2 kB / 389 MB, free: 7.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.01076, allocations: 162.4 kB / 389.2 MB, free: 7.328 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.01076, allocations: 0 / 389.2 MB, free: 7.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004064/0.01116, allocations: 340.6 kB / 389.5 MB, free: 6.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.01118, allocations: 4 kB / 389.5 MB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.01118, allocations: 4 kB / 389.5 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004602/0.01164, allocations: 179.2 kB / 389.7 MB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.089e-05/0.01172, allocations: 27.98 kB / 389.7 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.01365, allocations: 3.997 MB / 393.7 MB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.205e-05/0.01374, allocations: 27.84 kB / 393.8 MB, free: 2.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.01375, allocations: 12 kB / 393.8 MB, free: 2.48 MB / 362.7 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 9.504e-05/0.01384, allocations: 168.5 kB / 393.9 MB, free: 2.305 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.745e-05/0.01388, allocations: 35.8 kB / 394 MB, free: 2.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.647e-05/0.01391, allocations: 38.67 kB / 394 MB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.01391, allocations: 4 kB / 394 MB, free: 2.227 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.01392, allocations: 4 kB / 394 MB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.01392, allocations: 0 / 394 MB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009305/0.01485, allocations: 0.6803 MB / 394.7 MB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.01485, allocations: 7.938 kB / 394.7 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.153e-05/0.0149, allocations: 19.98 kB / 394.7 MB, free: 1.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003723/0.01527, allocations: 175.2 kB / 394.9 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.01528, allocations: 4 kB / 394.9 MB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001804/0.01708, allocations: 3.985 MB / 398.9 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01708, allocations: 0 / 398.9 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004052/0.01749, allocations: 464.9 kB / 399.3 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.283e-05/0.01754, allocations: 39.77 kB / 399.4 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.01756, allocations: 12.03 kB / 399.4 MB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.787e-05/0.01765, allocations: 19.98 kB / 399.4 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.684e-05/0.01771, allocations: 35.88 kB / 399.4 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.01772, allocations: 11.94 kB / 399.4 MB, free: 12.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.233e-05/0.0178, allocations: 184.6 kB / 399.6 MB, free: 12.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0178, allocations: 0 / 399.6 MB, free: 12.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000242/0.01805, allocations: 111.8 kB / 399.7 MB, free: 12.16 MB / 378.7 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 8.115e-05/0.01813, allocations: 107.2 kB / 399.8 MB, free: 12.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005068/0.01863, allocations: 0.5606 MB / 400.4 MB, free: 11.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.01864, allocations: 0 / 400.4 MB, free: 11.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002893/0.01893, allocations: 0.4991 MB / 400.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.01917, allocations: 48.86 kB / 400.9 MB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007266/0.01989, allocations: 478.9 kB / 401.4 MB, free: 10.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.02015, allocations: 92.61 kB / 401.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.052e-05/0.0202, allocations: 22.28 kB / 401.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.934e-05/0.02024, allocations: 24.5 kB / 401.6 MB, free: 10.21 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.02024, allocations: 3.938 kB / 401.6 MB, free: 10.2 MB / 378.7 MB Notification: Performance of Templates: time 0.006028/0.02627, allocations: 4.768 MB / 406.3 MB, free: 5.504 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.493197692092508]