Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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.001142/0.001142, allocations: 82.59 kB / 21.43 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.00124/0.00124, allocations: 170 kB / 24.82 MB, free: 9.254 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.9899/0.9899, allocations: 177 MB / 205.1 MB, free: 5.48 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.2751/0.2751, allocations: 34.87 MB / 296.6 MB, free: 0.5 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.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 379.2 MB, free: 1.867 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.429e-05/2.591e-05, allocations: 2.312 kB / 379.2 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001504/0.00153, allocations: 0.4983 MB / 379.7 MB, free: 1.363 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.002617, allocations: 0.9079 MB / 380.6 MB, free: 464 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.719e-05/0.002644, allocations: 0 / 380.6 MB, free: 464 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.632e-05/0.00266, allocations: 0 / 380.6 MB, free: 464 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.002854, allocations: 4 kB / 380.6 MB, free: 460 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:333:3-373:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.003572/0.006426, allocations: 63.56 kB / 380.7 MB, free: 400 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.842e-05/0.006474, allocations: 3.984 kB / 380.7 MB, free: 396 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.007e-05/0.006505, allocations: 4 kB / 380.7 MB, free: 392 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.126e-05/0.006536, allocations: 4 kB / 380.7 MB, free: 388 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.914e-05/0.006575, allocations: 3.938 kB / 380.7 MB, free: 384 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.879e-06/0.006585, allocations: 0 / 380.7 MB, free: 384 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.0067, allocations: 55.94 kB / 380.7 MB, free: 328 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.195e-06/0.006709, allocations: 0 / 380.7 MB, free: 328 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.485e-05/0.006723, allocations: 4 kB / 380.7 MB, free: 324 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.006867, allocations: 59.8 kB / 380.8 MB, free: 264 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.006871, allocations: 0 / 380.8 MB, free: 264 kB / 346.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.006872, allocations: 0 / 380.8 MB, free: 264 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.006876, allocations: 0 / 380.8 MB, free: 264 kB / 346.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.0003052/0.007181, allocations: 390 kB / 381.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.007223, allocations: 8.031 kB / 381.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.00725, allocations: 0.9375 kB / 381.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.247e-05/0.007322, allocations: 108.6 kB / 381.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.007335, allocations: 384 / 381.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.511e-06/0.007341, allocations: 384 / 381.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.746e-05/0.007408, allocations: 63.75 kB / 381.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.007414, allocations: 192 / 381.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.391e-06/0.007419, allocations: 384 / 381.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.007424, allocations: 384 / 381.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.105e-05/0.007445, allocations: 49.61 kB / 381.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.426e-05/0.00753, allocations: 89.61 kB / 381.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.384e-05/0.007573, allocations: 56.8 kB / 381.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.811e-05/0.007592, allocations: 37.39 kB / 381.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.467e-06/0.007595, allocations: 0 / 381.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.007632, allocations: 67.09 kB / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.007633, allocations: 0 / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.00014/0.007773, allocations: 122.8 kB / 381.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.007805, allocations: 77.11 kB / 381.8 MB, free: 15.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.214e-05/0.007877, allocations: 158.1 kB / 382 MB, free: 14.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.00789, allocations: 25.7 kB / 382 MB, free: 14.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.999e-05/0.00793, allocations: 134.8 kB / 382.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.346e-05/0.007943, allocations: 0 / 382.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-05/0.007972, allocations: 19.38 kB / 382.2 MB, free: 14.64 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.008104, allocations: 496.1 kB / 382.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.345e-05/0.008127, allocations: 25.7 kB / 382.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.886e-05/0.008146, allocations: 33.64 kB / 382.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.027e-05/0.008186, allocations: 59.09 kB / 382.8 MB, free: 14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.008188, allocations: 0 / 382.8 MB, free: 14 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.157e-05/0.00827, allocations: 97.28 kB / 382.9 MB, free: 13.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.0083, allocations: 35.89 kB / 382.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.008305, allocations: 0 / 382.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.008316, allocations: 0 / 382.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.008317, allocations: 0 / 382.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.235e-06/0.008319, allocations: 0 / 382.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.54e-05/0.008335, allocations: 4 kB / 382.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-06/0.008341, allocations: 7.938 kB / 382.9 MB, free: 13.84 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 7.222e-05/0.008413, allocations: 182.3 kB / 383.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.049e-05/0.008424, allocations: 7.938 kB / 383.1 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.33e-05/0.008437, allocations: 7.031 kB / 383.1 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.008438, allocations: 0 / 383.1 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.008439, allocations: 0 / 383.1 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.008442, allocations: 3.938 kB / 383.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.332e-05/0.008515, allocations: 97.2 kB / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.008516, allocations: 0 / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.008517, allocations: 0 / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.00852, allocations: 3.984 kB / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.817e-06/0.008524, allocations: 0 / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.008525, allocations: 0 / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.008526, allocations: 0 / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001028/0.008629, allocations: 139.8 kB / 383.3 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.262e-06/0.008635, allocations: 3.984 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.639e-06/0.008644, allocations: 0 / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.068e-05/0.008655, allocations: 4 kB / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.384e-06/0.008663, allocations: 0 / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.008666, allocations: 0 / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.539e-05/0.008701, allocations: 123.1 kB / 383.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008701, allocations: 0 / 383.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003216/0.01192, allocations: 19.94 kB / 383.5 MB, free: 13.18 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.0003861/0.0123, allocations: 202.6 kB / 383.7 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000101/0.0124, allocations: 126.5 kB / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01241, allocations: 0 / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.523e-05/0.01244, allocations: 92.78 kB / 383.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001181/0.01256, allocations: 3.938 kB / 383.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001602/0.01272, allocations: 119.1 kB / 384 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.882e-05/0.01275, allocations: 59.34 kB / 384.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.29e-06/0.01275, allocations: 0 / 384.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.01279, allocations: 70.2 kB / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01279, allocations: 128 / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of Templates: time 0.00403/0.01682, allocations: 0.7814 MB / 384.9 MB, free: 11.66 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.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.0331942164339125]