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.0009694/0.0009694, allocations: 86.58 kB / 21.42 MB, free: 3.07 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.0009473/0.0009473, allocations: 166.5 kB / 24.82 MB, free: 8.328 MB / 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 0.9583/0.9583, allocations: 177 MB / 205.1 MB, free: 5.461 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.2408/0.2408, allocations: 34.86 MB / 296.6 MB, free: 0.5039 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.393e-06/1.393e-06, allocations: 0 / 379.2 MB, free: 1.852 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.713e-05/1.853e-05, allocations: 3.578 kB / 379.2 MB, free: 1.848 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002833/0.002851, allocations: 2.915 MB / 382.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008647/0.003716, allocations: 0.6815 MB / 382.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.003833, allocations: 4 kB / 382.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001309/0.003964, allocations: 55.44 kB / 382.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.004075, allocations: 95.06 kB / 383 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001318/0.004207, allocations: 99.84 kB / 383.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002604/0.004467, allocations: 426.1 kB / 383.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.004611, allocations: 83.34 kB / 383.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.004783, allocations: 239.5 kB / 383.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.004899, allocations: 119.7 kB / 383.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.508e-05/0.004934, allocations: 36 kB / 383.9 MB, free: 13.08 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.297e-05/0.004967, allocations: 32 kB / 384 MB, free: 13.05 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.11e-05/0.005008, allocations: 79.72 kB / 384 MB, free: 12.97 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 7.562e-05/0.005083, allocations: 115.8 kB / 384.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.005289, allocations: 263.1 kB / 384.4 MB, free: 12.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.005291, allocations: 4 kB / 384.4 MB, free: 12.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005291, allocations: 0 / 384.4 MB, free: 12.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.005296, allocations: 4 kB / 384.4 MB, free: 12.59 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.0005807/0.005877, allocations: 0.6597 MB / 385.1 MB, free: 11.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.00591, allocations: 8.031 kB / 385.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.519e-05/0.005965, allocations: 60.7 kB / 385.1 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.006166, allocations: 225.4 kB / 385.4 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.00619, allocations: 21.03 kB / 385.4 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.376e-05/0.006213, allocations: 24.38 kB / 385.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003035/0.006517, allocations: 354.5 kB / 385.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.006525, allocations: 4.188 kB / 385.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.006542, allocations: 12.38 kB / 385.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.00655, allocations: 7.938 kB / 385.8 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001021/0.006652, allocations: 92.45 kB / 385.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.007657, allocations: 1.136 MB / 387 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.007894, allocations: 223.6 kB / 387.2 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.651e-05/0.007981, allocations: 86.48 kB / 387.3 MB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.007993, allocations: 4.234 kB / 387.3 MB, free: 9.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.008012, allocations: 41.62 kB / 387.4 MB, free: 9.469 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.162e-06/0.008013, allocations: 0 / 387.4 MB, free: 9.469 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009325/0.008946, allocations: 0.5729 MB / 387.9 MB, free: 8.883 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.932e-05/0.008965, allocations: 55.41 kB / 388 MB, free: 8.816 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.009217, allocations: 254.7 kB / 388.2 MB, free: 8.551 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.009233, allocations: 33.7 kB / 388.3 MB, free: 8.512 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.56e-05/0.009309, allocations: 223.2 kB / 388.5 MB, free: 8.289 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.201e-05/0.009351, allocations: 99.14 kB / 388.6 MB, free: 8.191 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-05/0.009406, allocations: 63.3 kB / 388.6 MB, free: 8.121 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.009509, allocations: 0.5078 MB / 389.1 MB, free: 7.602 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.111e-05/0.00955, allocations: 31.98 kB / 389.2 MB, free: 7.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.848e-05/0.009618, allocations: 102.2 kB / 389.3 MB, free: 7.449 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.009734, allocations: 134.3 kB / 389.4 MB, free: 7.297 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.009735, allocations: 0 / 389.4 MB, free: 7.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003443/0.01008, allocations: 316.4 kB / 389.7 MB, free: 6.973 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.987e-06/0.01009, allocations: 4 kB / 389.7 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.01009, allocations: 4 kB / 389.7 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003891/0.01048, allocations: 187.3 kB / 389.9 MB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.036e-05/0.01055, allocations: 35.92 kB / 389.9 MB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.01249, allocations: 3.901 MB / 393.8 MB, free: 2.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.691e-05/0.01257, allocations: 35.83 kB / 393.9 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.01258, allocations: 8.062 kB / 393.9 MB, free: 2.57 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 8.015e-05/0.01266, allocations: 172.5 kB / 394.1 MB, free: 2.391 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.285e-05/0.01269, allocations: 31.86 kB / 394.1 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.706e-05/0.01272, allocations: 42.58 kB / 394.1 MB, free: 2.312 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.01272, allocations: 0 / 394.1 MB, free: 2.312 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.01272, allocations: 4 kB / 394.1 MB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.01272, allocations: 0 / 394.1 MB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005917/0.01332, allocations: 0.6222 MB / 394.8 MB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.01332, allocations: 0 / 394.8 MB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.904e-05/0.01336, allocations: 19.94 kB / 394.8 MB, free: 1.625 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003356/0.01369, allocations: 175.5 kB / 394.9 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.0137, allocations: 4 kB / 395 MB, free: 1.441 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.01536, allocations: 3.909 MB / 398.9 MB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01536, allocations: 4 kB / 398.9 MB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006071/0.01597, allocations: 432.9 kB / 399.3 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.279e-05/0.01602, allocations: 55.64 kB / 399.3 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.01604, allocations: 8 kB / 399.3 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.846e-05/0.01613, allocations: 19.98 kB / 399.4 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.294e-05/0.01617, allocations: 31.94 kB / 399.4 MB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.01618, allocations: 4 kB / 399.4 MB, free: 12.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.548e-05/0.01624, allocations: 180.5 kB / 399.6 MB, free: 12.56 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01624, allocations: 0 / 399.6 MB, free: 12.56 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002299/0.01647, allocations: 107.8 kB / 399.7 MB, free: 12.45 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 6.898e-05/0.01654, allocations: 103.2 kB / 399.8 MB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003782/0.01692, allocations: 0.5528 MB / 400.3 MB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-06/0.01692, allocations: 0 / 400.3 MB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002399/0.01716, allocations: 490.9 kB / 400.8 MB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.01736, allocations: 48.53 kB / 400.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005817/0.01794, allocations: 489.9 kB / 401.3 MB, free: 10.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.754e-05/0.01799, allocations: 92.61 kB / 401.4 MB, free: 10.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.603e-05/0.01804, allocations: 14.3 kB / 401.4 MB, free: 10.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.01814, allocations: 114.2 kB / 401.6 MB, free: 10.44 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01814, allocations: 0 / 401.6 MB, free: 10.44 MB / 378.7 MB Notification: Performance of Templates: time 0.006039/0.02418, allocations: 5.028 MB / 406.6 MB, free: 5.484 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.1509898379445076]