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.001062/0.001062, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001486/0.001486, allocations: 163.1 kB / 24.99 MB, free: 8.801 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.146/1.146, allocations: 177 MB / 205.2 MB, free: 5.59 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.3892/0.3892, allocations: 34.86 MB / 296.6 MB, free: 0.5586 MB / 266.7 MB " [Timeout remaining time 179] 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.886e-06/2.886e-06, allocations: 3.938 kB / 378.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.679e-05/4.967e-05, allocations: 10.19 kB / 378.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.002313/0.002363, allocations: 0.4955 MB / 379.2 MB, free: 1.934 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.004577, allocations: 1.39 MB / 380.6 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.758e-05/0.004634, allocations: 0 / 380.6 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.033e-05/0.004665, allocations: 0 / 380.6 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003695/0.005034, allocations: 7.938 kB / 380.6 MB, free: 0.5312 MB / 346.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.001498/0.006532, allocations: 271.8 kB / 380.9 MB, free: 276 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 8.949e-05/0.006621, allocations: 8 kB / 380.9 MB, free: 268 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.822e-05/0.00668, allocations: 3.984 kB / 380.9 MB, free: 264 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.936e-05/0.006729, allocations: 3.938 kB / 380.9 MB, free: 260 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.038e-05/0.006789, allocations: 4 kB / 380.9 MB, free: 256 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.006802, allocations: 0 / 380.9 MB, free: 256 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003237/0.01004, allocations: 0.9935 MB / 381.9 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.512e-05/0.01005, allocations: 0 / 381.9 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.24e-05/0.01009, allocations: 4 kB / 381.9 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003567/0.01365, allocations: 211.4 kB / 382.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.01366, allocations: 0 / 382.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.035e-06/0.01366, allocations: 4 kB / 382.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.01367, allocations: 3.938 kB / 382.1 MB, free: 15.3 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.0005177/0.01419, allocations: 413.6 kB / 382.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/0.01425, allocations: 8.031 kB / 382.5 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.398e-05/0.01432, allocations: 9.234 kB / 382.5 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.01445, allocations: 108.6 kB / 382.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.01447, allocations: 384 / 382.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.01448, allocations: 4.375 kB / 382.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.01462, allocations: 51.97 kB / 382.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.01463, allocations: 192 / 382.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.01465, allocations: 4.375 kB / 382.7 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.01466, allocations: 4.359 kB / 382.7 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.793e-05/0.01469, allocations: 33.64 kB / 382.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001821/0.01487, allocations: 116.6 kB / 382.8 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.739e-05/0.01495, allocations: 52.7 kB / 382.9 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.704e-05/0.01499, allocations: 37.48 kB / 382.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.015, allocations: 0 / 382.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.747e-05/0.01506, allocations: 59.09 kB / 383 MB, free: 14.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 2.325e-06/0.01507, allocations: 0 / 383 MB, free: 14.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0003223/0.01539, allocations: 126.7 kB / 383.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.63e-05/0.01545, allocations: 77.11 kB / 383.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.01559, allocations: 162 kB / 383.4 MB, free: 13.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.01561, allocations: 29.69 kB / 383.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.529e-05/0.01567, allocations: 134.9 kB / 383.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.01569, allocations: 0 / 383.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.301e-05/0.01573, allocations: 19.38 kB / 383.5 MB, free: 13.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.01593, allocations: 492.1 kB / 384 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.095e-05/0.01597, allocations: 29.7 kB / 384 MB, free: 13.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.51e-05/0.01599, allocations: 25.7 kB / 384.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.351e-05/0.01606, allocations: 75.02 kB / 384.1 MB, free: 12.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.01607, allocations: 192 / 384.1 MB, free: 12.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.003153/0.01922, allocations: 93.05 kB / 384.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.132e-05/0.01927, allocations: 29.7 kB / 384.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.01928, allocations: 4 kB / 384.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/0.01931, allocations: 0 / 384.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.694e-06/0.01931, allocations: 0 / 384.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.01932, allocations: 0 / 384.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.195e-05/0.01935, allocations: 7.922 kB / 384.3 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.01936, allocations: 0 / 384.3 MB, free: 12.83 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 0.0001198/0.01948, allocations: 182.3 kB / 384.4 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.174e-05/0.01949, allocations: 4.031 kB / 384.5 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.01951, allocations: 11.16 kB / 384.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.01951, allocations: 0 / 384.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.01952, allocations: 0 / 384.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.01953, allocations: 3.938 kB / 384.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.225e-05/0.01962, allocations: 116.6 kB / 384.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.01962, allocations: 0 / 384.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.553e-06/0.01962, allocations: 0 / 384.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.01962, allocations: 0 / 384.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.01963, allocations: 0 / 384.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.01963, allocations: 4 kB / 384.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.01964, allocations: 0 / 384.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001512/0.01979, allocations: 143.7 kB / 384.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.158e-06/0.0198, allocations: 0 / 384.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.01982, allocations: 0 / 384.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.353e-05/0.01983, allocations: 4 kB / 384.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.802e-05/0.01985, allocations: 0 / 384.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.01985, allocations: 0 / 384.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.993e-05/0.0199, allocations: 123.2 kB / 384.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0199, allocations: 0 / 384.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004113/0.02032, allocations: 71.73 kB / 384.9 MB, free: 12.09 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.0009673/0.02128, allocations: 370.4 kB / 385.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001674/0.02145, allocations: 118.5 kB / 385.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.02145, allocations: 0 / 385.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.799e-05/0.02151, allocations: 96.72 kB / 385.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001623/0.02167, allocations: 3.938 kB / 385.5 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002975/0.02197, allocations: 128.1 kB / 385.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003064/0.02503, allocations: 51.36 kB / 385.7 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.155e-05/0.02505, allocations: 0 / 385.7 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.557e-05/0.02507, allocations: 16.61 kB / 385.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.924e-06/0.02507, allocations: 0 / 385.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of Templates: time 0.008799/0.03387, allocations: 1.65 MB / 387.3 MB, free: 9.633 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.666200601030141]