Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.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.001464/0.001464, allocations: 84.25 kB / 22.21 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.001818/0.001818, allocations: 165.3 kB / 25.61 MB, free: 8.586 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.9495/0.9495, allocations: 177 MB / 205.9 MB, free: 4.41 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.1587/0.1587, allocations: 34.87 MB / 297.4 MB, free: 13.33 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.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.704e-05/2.917e-05, allocations: 4 kB / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.00188/0.001909, allocations: 491.3 kB / 380.5 MB, free: 22.3 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.003415, allocations: 1.313 MB / 381.8 MB, free: 20.98 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.702e-05/0.003432, allocations: 0 / 381.8 MB, free: 20.98 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.294e-05/0.003445, allocations: 4 kB / 381.8 MB, free: 20.98 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.041e-06/0.003451, allocations: 4 kB / 381.8 MB, free: 20.97 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:4:3-230:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.004783, allocations: 0.619 MB / 382.4 MB, free: 20.35 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.129e-05/0.004835, allocations: 3.984 kB / 382.4 MB, free: 20.35 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.292e-05/0.004868, allocations: 3.984 kB / 382.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.636e-05/0.004894, allocations: 4 kB / 382.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.159e-05/0.004916, allocations: 0 / 382.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.653e-06/0.004922, allocations: 0 / 382.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01238/0.0173, allocations: 5.103 MB / 387.5 MB, free: 16.52 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.01731, allocations: 0 / 387.5 MB, free: 16.52 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.01733, allocations: 3.984 kB / 387.5 MB, free: 16.52 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00142/0.01875, allocations: 207.6 kB / 387.7 MB, free: 16.31 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.01876, allocations: 0 / 387.7 MB, free: 16.31 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01876, allocations: 3.938 kB / 387.7 MB, free: 16.31 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.01876, allocations: 4 kB / 387.7 MB, free: 16.3 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.0001961/0.01896, allocations: 409.8 kB / 388.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.01899, allocations: 12.02 kB / 388.1 MB, free: 15.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.467e-05/0.01902, allocations: 4.938 kB / 388.1 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.712e-05/0.01905, allocations: 104.6 kB / 388.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/0.01906, allocations: 4.359 kB / 388.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.388e-06/0.01907, allocations: 384 / 388.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.637e-05/0.01911, allocations: 59.91 kB / 388.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.987e-06/0.01912, allocations: 192 / 388.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-06/0.01912, allocations: 384 / 388.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.01912, allocations: 4.375 kB / 388.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.219e-05/0.01914, allocations: 33.64 kB / 388.3 MB, free: 15.6 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.365e-05/0.01919, allocations: 97.25 kB / 388.4 MB, free: 15.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.59e-05/0.01922, allocations: 56.73 kB / 388.5 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.031e-05/0.01923, allocations: 33.39 kB / 388.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-06/0.01923, allocations: 0 / 388.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.01925, allocations: 63.16 kB / 388.6 MB, free: 15.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 4.11e-07/0.01925, allocations: 0 / 388.6 MB, free: 15.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 9.599e-05/0.01935, allocations: 118.7 kB / 388.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.266e-05/0.01937, allocations: 81.23 kB / 388.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.033e-05/0.01939, allocations: 146.2 kB / 388.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-06/0.01939, allocations: 25.7 kB / 389 MB, free: 14.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.215e-05/0.0194, allocations: 130.9 kB / 389.1 MB, free: 14.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.01942, allocations: 0 / 389.1 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.867e-05/0.01944, allocations: 15.38 kB / 389.1 MB, free: 14.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.311e-05/0.0195, allocations: 0.4961 MB / 389.6 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.578e-06/0.01951, allocations: 25.7 kB / 389.6 MB, free: 14.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.603e-06/0.01952, allocations: 25.7 kB / 389.6 MB, free: 14.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.989e-05/0.01955, allocations: 63.09 kB / 389.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.01955, allocations: 4.062 kB / 389.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.302e-05/0.01959, allocations: 97.03 kB / 389.8 MB, free: 13.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.01962, allocations: 29.7 kB / 389.8 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.01962, allocations: 7.984 kB / 389.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.01963, allocations: 0 / 389.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.01963, allocations: 0 / 389.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.886e-06/0.01964, allocations: 0 / 389.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.157e-06/0.01964, allocations: 0 / 389.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.478e-06/0.01965, allocations: 0 / 389.8 MB, free: 13.89 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.66e-05/0.0197, allocations: 186.2 kB / 390 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.669e-06/0.0197, allocations: 4.031 kB / 390 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.859e-06/0.01971, allocations: 6.984 kB / 390 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.01971, allocations: 4 kB / 390 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.01971, allocations: 0 / 390 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.01972, allocations: 3.938 kB / 390 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.985e-05/0.01976, allocations: 93.2 kB / 390.1 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.01976, allocations: 4 kB / 390.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.41e-07/0.01976, allocations: 0 / 390.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.71e-07/0.01976, allocations: 4 kB / 390.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-06/0.01976, allocations: 0 / 390.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.01e-07/0.01976, allocations: 0 / 390.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.01976, allocations: 4 kB / 390.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.627e-05/0.01982, allocations: 135.7 kB / 390.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.509e-06/0.01982, allocations: 0 / 390.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.456e-06/0.01983, allocations: 4 kB / 390.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.359e-06/0.01984, allocations: 0 / 390.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.608e-06/0.01985, allocations: 3.984 kB / 390.3 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.01985, allocations: 0 / 390.3 MB, free: 13.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.569e-05/0.01986, allocations: 123.2 kB / 390.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01986, allocations: 0 / 390.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001898/0.02005, allocations: 71.81 kB / 390.5 MB, free: 13.18 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.0006406/0.02069, allocations: 460.2 kB / 390.9 MB, free: 12.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.668e-05/0.02076, allocations: 126.5 kB / 391 MB, free: 12.63 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-06/0.02076, allocations: 0 / 391 MB, free: 12.63 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.388e-05/0.02078, allocations: 96.8 kB / 391.1 MB, free: 12.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.303e-05/0.02086, allocations: 7.875 kB / 391.1 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001159/0.02097, allocations: 119.6 kB / 391.3 MB, free: 12.35 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.529e-05/0.02099, allocations: 55.22 kB / 391.3 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.591e-06/0.021, allocations: 0 / 391.3 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.422e-05/0.02102, allocations: 74.2 kB / 391.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02102, allocations: 0 / 391.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of Templates: time 0.003512/0.02453, allocations: 2.645 MB / 394 MB, free: 9.559 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.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.2102766293101013]