Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.001021/0.001021, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001568/0.001568, allocations: 163.4 kB / 25.61 MB, free: 8.582 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 1.023/1.023, allocations: 177 MB / 205.9 MB, free: 4.465 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.1627/0.1627, allocations: 34.88 MB / 297.4 MB, free: 13.35 MB / 282.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.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.084e-05/3.256e-05, allocations: 4.734 kB / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001588/0.001621, allocations: 497.8 kB / 380.5 MB, free: 22.3 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004772/0.006393, allocations: 1.404 MB / 381.9 MB, free: 20.89 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.559e-05/0.006428, allocations: 0 / 381.9 MB, free: 20.89 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.816e-05/0.006446, allocations: 0 / 381.9 MB, free: 20.89 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.006645, allocations: 11.98 kB / 381.9 MB, free: 20.88 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:466:3-498:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.007769, allocations: 276 kB / 382.1 MB, free: 20.62 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.761e-05/0.007827, allocations: 7.938 kB / 382.2 MB, free: 20.62 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.86e-05/0.007866, allocations: 0 / 382.2 MB, free: 20.62 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.203e-05/0.007898, allocations: 4 kB / 382.2 MB, free: 20.61 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.986e-05/0.007947, allocations: 3.984 kB / 382.2 MB, free: 20.61 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.125e-06/0.007956, allocations: 0 / 382.2 MB, free: 20.61 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002922/0.01088, allocations: 0.9924 MB / 383.2 MB, free: 19.9 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.113e-05/0.01089, allocations: 0 / 383.2 MB, free: 19.9 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.866e-05/0.01091, allocations: 4 kB / 383.2 MB, free: 19.89 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003434/0.01125, allocations: 219.3 kB / 383.4 MB, free: 19.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.01125, allocations: 0 / 383.4 MB, free: 19.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.614e-06/0.01126, allocations: 0 / 383.4 MB, free: 19.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.01126, allocations: 8 kB / 383.4 MB, free: 19.67 MB / 314.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.0002987/0.01156, allocations: 409.7 kB / 383.8 MB, free: 19.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.0116, allocations: 8.031 kB / 383.8 MB, free: 19.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.01163, allocations: 4.938 kB / 383.8 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.921e-05/0.01171, allocations: 108.9 kB / 383.9 MB, free: 19.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.01172, allocations: 384 / 383.9 MB, free: 19.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.694e-06/0.01173, allocations: 4.375 kB / 383.9 MB, free: 19.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.818e-05/0.0118, allocations: 51.97 kB / 384 MB, free: 19.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.01181, allocations: 192 / 384 MB, free: 19.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.173e-06/0.01182, allocations: 384 / 384 MB, free: 19.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.01182, allocations: 8.375 kB / 384 MB, free: 19.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.496e-05/0.01184, allocations: 37.56 kB / 384 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.828e-05/0.01191, allocations: 93.3 kB / 384.1 MB, free: 18.85 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.055e-05/0.01196, allocations: 52.77 kB / 384.1 MB, free: 18.78 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.388e-05/0.01197, allocations: 37.45 kB / 384.2 MB, free: 18.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-06/0.01197, allocations: 0 / 384.2 MB, free: 18.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.012, allocations: 63.03 kB / 384.2 MB, free: 18.65 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.012, allocations: 0 / 384.2 MB, free: 18.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001541/0.01215, allocations: 122.7 kB / 384.4 MB, free: 18.51 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.01218, allocations: 77.23 kB / 384.4 MB, free: 18.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.938e-05/0.01223, allocations: 165.9 kB / 384.6 MB, free: 18.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.021e-06/0.01223, allocations: 29.7 kB / 384.6 MB, free: 18.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.51e-05/0.01225, allocations: 126.9 kB / 384.7 MB, free: 18.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.269e-05/0.01226, allocations: 0 / 384.7 MB, free: 18.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/0.01229, allocations: 19.38 kB / 384.8 MB, free: 18.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.493e-05/0.01233, allocations: 496.1 kB / 385.3 MB, free: 17.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.245e-05/0.01234, allocations: 25.7 kB / 385.3 MB, free: 17.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.06e-05/0.01235, allocations: 29.7 kB / 385.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.888e-05/0.01238, allocations: 67.27 kB / 385.4 MB, free: 17.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.01238, allocations: 4 kB / 385.4 MB, free: 17.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.284e-05/0.01245, allocations: 89.05 kB / 385.5 MB, free: 17.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.01247, allocations: 29.7 kB / 385.5 MB, free: 17.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.01248, allocations: 0 / 385.5 MB, free: 17.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.01249, allocations: 0 / 385.5 MB, free: 17.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.01249, allocations: 0 / 385.5 MB, free: 17.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.485e-06/0.01249, allocations: 0 / 385.5 MB, free: 17.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.54e-05/0.01251, allocations: 11.98 kB / 385.5 MB, free: 17.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-06/0.01251, allocations: 7.938 kB / 385.5 MB, free: 17.23 MB / 314.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 4.696e-05/0.01256, allocations: 186.3 kB / 385.7 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-06/0.01257, allocations: 4.031 kB / 385.7 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.035e-05/0.01258, allocations: 3.156 kB / 385.7 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.01258, allocations: 0 / 385.7 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.01258, allocations: 0 / 385.7 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.01259, allocations: 4 kB / 385.7 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.874e-05/0.01264, allocations: 97.19 kB / 385.8 MB, free: 16.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.01264, allocations: 3.984 kB / 385.8 MB, free: 16.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.453e-06/0.01264, allocations: 0 / 385.8 MB, free: 16.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.41e-07/0.01264, allocations: 0 / 385.8 MB, free: 16.9 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.539e-06/0.01264, allocations: 4 kB / 385.8 MB, free: 16.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.01265, allocations: 0 / 385.8 MB, free: 16.9 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.01265, allocations: 4 kB / 385.8 MB, free: 16.89 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.01e-05/0.01273, allocations: 135.7 kB / 385.9 MB, free: 16.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.512e-06/0.01273, allocations: 11.89 kB / 386 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.01275, allocations: 0 / 386 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-06/0.01275, allocations: 0 / 386 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.527e-06/0.01276, allocations: 0 / 386 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.01277, allocations: 4 kB / 386 MB, free: 16.71 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.735e-05/0.01278, allocations: 119.2 kB / 386.1 MB, free: 16.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01278, allocations: 0 / 386.1 MB, free: 16.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002882/0.01307, allocations: 59.98 kB / 386.1 MB, free: 16.54 MB / 314.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.0006766/0.01375, allocations: 369.7 kB / 386.5 MB, free: 16.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.029e-05/0.01383, allocations: 126.4 kB / 386.6 MB, free: 16.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.01383, allocations: 0 / 386.6 MB, free: 16.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.905e-05/0.01385, allocations: 88.8 kB / 386.7 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.01398, allocations: 11.92 kB / 386.7 MB, free: 15.97 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001513/0.01413, allocations: 118 kB / 386.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.686e-05/0.01415, allocations: 55.22 kB / 386.9 MB, free: 15.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.941e-06/0.01415, allocations: 4.125 kB / 386.9 MB, free: 15.75 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.821e-05/0.01423, allocations: 78.19 kB / 387 MB, free: 15.67 MB / 314.7 MB Notification: Performance of SimCode: time 1.583e-06/0.01423, allocations: 0 / 387 MB, free: 15.67 MB / 314.7 MB Notification: Performance of Templates: time 0.002925/0.01716, allocations: 1.895 MB / 388.9 MB, free: 13.78 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.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.275858791079372]