Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.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.0008799/0.0008799, 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.001197/0.001197, 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.002/1.002, allocations: 177 MB / 204.9 MB, free: 5.582 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.2793/0.2793, allocations: 34.86 MB / 296.3 MB, free: 492 kB / 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.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 378.7 MB, free: 2.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.809e-05/4.007e-05, allocations: 3.156 kB / 378.7 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.002161/0.002201, allocations: 0.5111 MB / 379.3 MB, free: 1.594 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002379/0.00458, allocations: 1.6 MB / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.736e-05/0.004597, allocations: 0 / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.996e-05/0.004617, allocations: 0 / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.632e-06/0.004624, allocations: 0 / 380.9 MB, free: 15.97 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009962/0.00562, allocations: 295 kB / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.012e-05/0.00567, allocations: 7.984 kB / 381.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.618e-05/0.005706, allocations: 4 kB / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.718e-05/0.005733, allocations: 0 / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.721e-05/0.005751, allocations: 0 / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.995e-06/0.005759, allocations: 0 / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004964/0.006255, allocations: 435 kB / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.003e-05/0.006265, allocations: 3.984 kB / 381.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.915e-05/0.006284, allocations: 0 / 381.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003265/0.006611, allocations: 319.1 kB / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.006614, allocations: 0 / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.006614, allocations: 0 / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.006619, allocations: 0 / 381.9 MB, free: 14.93 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002802/0.006899, allocations: 397.8 kB / 382.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.006936, allocations: 8.031 kB / 382.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.33e-05/0.006969, allocations: 4.938 kB / 382.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.658e-05/0.007026, allocations: 112.6 kB / 382.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.007037, allocations: 384 / 382.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.007048, allocations: 384 / 382.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.221e-05/0.007131, allocations: 63.89 kB / 382.5 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.007138, allocations: 192 / 382.5 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.727e-06/0.007147, allocations: 384 / 382.5 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.007154, allocations: 3.938 kB / 382.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.137e-05/0.007176, allocations: 33.64 kB / 382.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.599e-05/0.007262, allocations: 104.6 kB / 382.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.745e-05/0.007309, allocations: 60.78 kB / 382.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.899e-05/0.007328, allocations: 37.39 kB / 382.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-06/0.007333, allocations: 4.062 kB / 382.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.007364, allocations: 59.09 kB / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.72e-07/0.007365, allocations: 0 / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001567/0.007521, allocations: 122.7 kB / 382.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.00756, allocations: 81.05 kB / 383 MB, free: 13.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.003e-05/0.0076, allocations: 146.2 kB / 383.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.00761, allocations: 25.7 kB / 383.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.602e-05/0.007636, allocations: 126.9 kB / 383.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.007653, allocations: 480 / 383.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/0.007681, allocations: 23.38 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.007807, allocations: 492.1 kB / 383.8 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.795e-05/0.007825, allocations: 25.7 kB / 383.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.761e-05/0.007842, allocations: 33.69 kB / 383.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.853e-05/0.007891, allocations: 67.09 kB / 383.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.007893, allocations: 0 / 383.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.685e-05/0.00796, allocations: 93 kB / 384 MB, free: 12.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.007992, allocations: 37.69 kB / 384 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.007997, allocations: 0 / 384 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.008012, allocations: 4.094 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.206e-06/0.008015, allocations: 0 / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.008021, allocations: 3.938 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.101e-05/0.008032, allocations: 0 / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.00804, allocations: 4 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.142e-05/0.008122, allocations: 182.3 kB / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.172e-06/0.008128, allocations: 4 kB / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.085e-05/0.008139, allocations: 3 kB / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.008141, allocations: 0 / 384.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.008146, allocations: 3.984 kB / 384.2 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.008152, allocations: 11.88 kB / 384.2 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.934e-05/0.008211, allocations: 108.6 kB / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.008212, allocations: 0 / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.008212, allocations: 0 / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.008213, allocations: 0 / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.00822, allocations: 0 / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.41e-07/0.00822, allocations: 0 / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.008221, allocations: 3.938 kB / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.224e-05/0.008313, allocations: 139.8 kB / 384.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-06/0.008317, allocations: 0 / 384.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.008331, allocations: 0 / 384.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.068e-06/0.008335, allocations: 4.031 kB / 384.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.476e-05/0.008349, allocations: 4 kB / 384.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.008352, allocations: 3.984 kB / 384.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.506e-05/0.008387, allocations: 123.1 kB / 384.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008387, allocations: 0 / 384.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002193/0.008607, allocations: 63.81 kB / 384.7 MB, free: 11.77 MB / 362.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 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003751/0.008982, allocations: 200.3 kB / 384.9 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001035/0.009085, allocations: 122.4 kB / 385 MB, free: 11.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.009087, allocations: 0 / 385 MB, free: 11.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.09e-05/0.009118, allocations: 92.86 kB / 385.1 MB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.254e-05/0.00921, allocations: 7.984 kB / 385.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001743/0.009385, allocations: 109.7 kB / 385.2 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.234e-05/0.009417, allocations: 55.36 kB / 385.2 MB, free: 11.08 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.24e-06/0.009422, allocations: 0 / 385.2 MB, free: 11.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.23e-05/0.009435, allocations: 8.5 kB / 385.2 MB, free: 11.07 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.009435, allocations: 0 / 385.2 MB, free: 11.07 MB / 362.7 MB Notification: Performance of Templates: time 0.003223/0.01266, allocations: 1.316 MB / 386.6 MB, free: 9.758 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestMatrices/TestMatrices.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.293063214980066]