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.000985/0.000985, allocations: 81.91 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.001172/0.001172, allocations: 169.7 kB / 24.82 MB, free: 9.273 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.092/1.092, allocations: 177 MB / 205.1 MB, free: 5.473 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.3215/0.3215, allocations: 34.87 MB / 296.6 MB, free: 0.5078 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.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 2.064e-06/2.064e-06, allocations: 0 / 379.2 MB, free: 1.867 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.91e-05/3.116e-05, allocations: 3.297 kB / 379.2 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001782/0.001813, allocations: 0.4917 MB / 379.7 MB, free: 1.371 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.003969, allocations: 1.398 MB / 381.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.097e-05/0.00401, allocations: 0 / 381.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.574e-05/0.004036, allocations: 0 / 381.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002709/0.004307, allocations: 15.78 kB / 381.1 MB, free: 15.95 MB / 362.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.001241/0.005548, allocations: 267.8 kB / 381.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.87e-05/0.005607, allocations: 7.938 kB / 381.4 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.485e-05/0.005652, allocations: 3.984 kB / 381.4 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.089e-05/0.005693, allocations: 4 kB / 381.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.322e-05/0.005756, allocations: 0 / 381.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.14e-05/0.005767, allocations: 0 / 381.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003033/0.0088, allocations: 0.9885 MB / 382.4 MB, free: 14.95 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.173e-05/0.008812, allocations: 0 / 382.4 MB, free: 14.95 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.257e-05/0.008835, allocations: 0 / 382.4 MB, free: 14.95 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003246/0.009159, allocations: 215.4 kB / 382.6 MB, free: 14.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.009163, allocations: 0 / 382.6 MB, free: 14.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.009164, allocations: 3.938 kB / 382.6 MB, free: 14.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.009169, allocations: 0 / 382.6 MB, free: 14.74 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.0003292/0.009498, allocations: 413.7 kB / 383 MB, free: 14.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.009537, allocations: 12.03 kB / 383 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.657e-05/0.009564, allocations: 5.234 kB / 383 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.487e-05/0.009639, allocations: 108.6 kB / 383.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.009649, allocations: 384 / 383.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.18e-06/0.009654, allocations: 384 / 383.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.26e-05/0.009726, allocations: 59.91 kB / 383.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.009736, allocations: 192 / 383.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.009744, allocations: 4.359 kB / 383.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.00975, allocations: 384 / 383.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.823e-05/0.009768, allocations: 33.64 kB / 383.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001022/0.009871, allocations: 97.25 kB / 383.3 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.207e-05/0.009923, allocations: 56.8 kB / 383.4 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.004e-05/0.009953, allocations: 33.39 kB / 383.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-06/0.009959, allocations: 4.062 kB / 383.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.009998, allocations: 67.02 kB / 383.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.009999, allocations: 0 / 383.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001582/0.01016, allocations: 118.8 kB / 383.6 MB, free: 13.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.01019, allocations: 77.11 kB / 383.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.029e-05/0.01027, allocations: 153.9 kB / 383.8 MB, free: 13.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.01029, allocations: 33.95 kB / 383.8 MB, free: 13.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.259e-05/0.01033, allocations: 130.9 kB / 384 MB, free: 13.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.01035, allocations: 0 / 384 MB, free: 13.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.519e-05/0.01037, allocations: 19.38 kB / 384 MB, free: 13.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.01049, allocations: 0.4883 MB / 384.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.404e-05/0.0105, allocations: 25.7 kB / 384.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.48e-05/0.01052, allocations: 33.69 kB / 384.5 MB, free: 12.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.251e-05/0.01055, allocations: 63.03 kB / 384.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.01055, allocations: 0 / 384.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.496e-05/0.0106, allocations: 89.11 kB / 384.7 MB, free: 12.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.01063, allocations: 37.8 kB / 384.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.01064, allocations: 7.969 kB / 384.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.01065, allocations: 0 / 384.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.01065, allocations: 0 / 384.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.395e-06/0.01065, allocations: 0 / 384.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.193e-05/0.01066, allocations: 4 kB / 384.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.01067, allocations: 7.938 kB / 384.7 MB, free: 12.29 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 6.249e-05/0.01073, allocations: 178.3 kB / 384.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.058e-06/0.01074, allocations: 4 kB / 384.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.121e-05/0.01075, allocations: 3.156 kB / 384.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.01075, allocations: 7.938 kB / 384.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.01075, allocations: 0 / 384.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.01075, allocations: 0 / 384.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.71e-05/0.01081, allocations: 105.1 kB / 385 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.01081, allocations: 0 / 385 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.41e-07/0.01081, allocations: 0 / 385 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.11e-07/0.01081, allocations: 0 / 385 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-06/0.01082, allocations: 4 kB / 385 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.01e-07/0.01082, allocations: 0 / 385 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.01082, allocations: 0 / 385 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.422e-05/0.01091, allocations: 135.8 kB / 385.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.953e-06/0.01092, allocations: 4 kB / 385.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.087e-06/0.01093, allocations: 0 / 385.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.959e-06/0.01093, allocations: 3.938 kB / 385.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.187e-06/0.01094, allocations: 0 / 385.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.01095, allocations: 4 kB / 385.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.386e-05/0.01098, allocations: 127.2 kB / 385.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01098, allocations: 0 / 385.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002126/0.01119, allocations: 67.73 kB / 385.4 MB, free: 11.58 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.0006373/0.01183, allocations: 369 kB / 385.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001203/0.01195, allocations: 118.5 kB / 385.8 MB, free: 11.13 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.01195, allocations: 0 / 385.8 MB, free: 11.13 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.933e-05/0.01199, allocations: 92.78 kB / 385.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001098/0.0121, allocations: 7.938 kB / 385.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001853/0.01229, allocations: 120.1 kB / 386.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.156e-05/0.01232, allocations: 55.34 kB / 386.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.691e-06/0.01232, allocations: 0 / 386.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.256e-05/0.01237, allocations: 74.2 kB / 386.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01237, allocations: 4.125 kB / 386.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of Templates: time 0.003755/0.01612, allocations: 1.904 MB / 388.1 MB, free: 8.805 MB / 362.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.3227160340175033]