Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.001473/0.001473, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.001598/0.001598, allocations: 217.5 kB / 24.5 MB, free: 4.133 MB / 14.72 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.339/1.339, allocations: 230.5 MB / 258.1 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] 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.2084/0.2084, allocations: 46.92 MB / 361.5 MB, free: 4.188 MB / 286.1 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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002253/0.002253, allocations: 87.86 kB / 0.4974 GB, free: 7.277 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2888, allocations: 66.07 MB / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001439/0.2903, allocations: 499.4 kB / 0.5624 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005886/0.2908, allocations: 265.5 kB / 0.5627 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.167e-05/0.2909, allocations: 4 kB / 0.5627 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.044e-05/0.2909, allocations: 0 / 0.5627 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.24e-06/0.2909, allocations: 0 / 0.5627 GB, free: 3.504 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.2912, allocations: 55.8 kB / 0.5627 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.445e-05/0.2912, allocations: 7.922 kB / 0.5627 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.872e-05/0.2913, allocations: 4 kB / 0.5627 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.446e-05/0.2913, allocations: 0 / 0.5627 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.86e-05/0.2913, allocations: 0 / 0.5627 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.614e-06/0.2913, allocations: 0 / 0.5627 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.2914, allocations: 63.95 kB / 0.5628 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.891e-06/0.2914, allocations: 3.938 kB / 0.5628 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.894e-05/0.2915, allocations: 8 kB / 0.5628 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.2916, allocations: 59.66 kB / 0.5629 GB, free: 3.309 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2916, allocations: 0 / 0.5629 GB, free: 3.309 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2916, allocations: 0 / 0.5629 GB, free: 3.309 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.2916, allocations: 0 / 0.5629 GB, free: 3.309 MB / 398.1 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.0003322/0.2919, allocations: 278.5 kB / 0.5631 GB, free: 3.004 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.292, allocations: 12.03 kB / 0.5631 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.292, allocations: 4.938 kB / 0.5631 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.077e-05/0.2921, allocations: 102.5 kB / 0.5632 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.2921, allocations: 4.375 kB / 0.5632 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.2921, allocations: 4.375 kB / 0.5632 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.516e-05/0.2922, allocations: 30.25 kB / 0.5633 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.974e-06/0.2922, allocations: 192 / 0.5633 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.2922, allocations: 3.938 kB / 0.5633 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.2922, allocations: 4 kB / 0.5633 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.674e-05/0.2922, allocations: 3.938 kB / 0.5633 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001174/0.2923, allocations: 112.8 kB / 0.5634 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.575e-05/0.2924, allocations: 26.61 kB / 0.5634 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.698e-05/0.2924, allocations: 8.844 kB / 0.5634 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-06/0.2924, allocations: 0 / 0.5634 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.2925, allocations: 56.27 kB / 0.5635 GB, free: 2.539 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.2925, allocations: 4.062 kB / 0.5635 GB, free: 2.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001521/0.2926, allocations: 63.28 kB / 0.5635 GB, free: 2.461 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.2927, allocations: 89.09 kB / 0.5636 GB, free: 2.355 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.46e-05/0.2927, allocations: 97.94 kB / 0.5637 GB, free: 2.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.2927, allocations: 29.64 kB / 0.5637 GB, free: 2.215 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.273e-05/0.2928, allocations: 80.14 kB / 0.5638 GB, free: 2.133 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.2928, allocations: 0 / 0.5638 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.583e-05/0.2928, allocations: 13.72 kB / 0.5638 GB, free: 2.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.2929, allocations: 310.8 kB / 0.5641 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-06/0.2929, allocations: 0 / 0.5641 GB, free: 1.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.298e-06/0.2929, allocations: 0 / 0.5641 GB, free: 1.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.082e-05/0.293, allocations: 68.33 kB / 0.5642 GB, free: 1.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.293, allocations: 0 / 0.5642 GB, free: 1.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.594e-05/0.2931, allocations: 67.33 kB / 0.5643 GB, free: 1.641 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.2931, allocations: 29.7 kB / 0.5643 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.2931, allocations: 0 / 0.5643 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.2931, allocations: 7.938 kB / 0.5643 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.91e-07/0.2931, allocations: 0 / 0.5643 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.2931, allocations: 0 / 0.5643 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.28e-05/0.2931, allocations: 0 / 0.5643 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.2931, allocations: 3.938 kB / 0.5643 GB, free: 1.594 MB / 398.1 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 8.736e-05/0.2932, allocations: 147.6 kB / 0.5644 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-06/0.2932, allocations: 4 kB / 0.5644 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.128e-05/0.2933, allocations: 6.938 kB / 0.5645 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.2933, allocations: 0 / 0.5645 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.2933, allocations: 0 / 0.5645 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-06/0.2933, allocations: 0 / 0.5645 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.37e-05/0.2933, allocations: 120.8 kB / 0.5646 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.2933, allocations: 0 / 0.5646 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-07/0.2933, allocations: 0 / 0.5646 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.2933, allocations: 4 kB / 0.5646 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.2933, allocations: 3.938 kB / 0.5646 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2934, allocations: 4 kB / 0.5646 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2934, allocations: 0 / 0.5646 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.689e-05/0.2934, allocations: 90.77 kB / 0.5647 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-06/0.2935, allocations: 4 kB / 0.5647 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.2935, allocations: 3.938 kB / 0.5647 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.478e-06/0.2935, allocations: 4.031 kB / 0.5647 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.596e-06/0.2935, allocations: 0 / 0.5647 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.2935, allocations: 0 / 0.5647 GB, free: 1.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.124e-05/0.2935, allocations: 83.22 kB / 0.5648 GB, free: 1.043 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2935, allocations: 0 / 0.5648 GB, free: 1.043 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000204/0.2937, allocations: 23.92 kB / 0.5648 GB, free: 1.02 MB / 398.1 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.0006324/0.2944, allocations: 274.6 kB / 0.565 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.459e-05/0.2945, allocations: 63.34 kB / 0.5651 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2945, allocations: 64 / 0.5651 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.393e-05/0.2945, allocations: 59.41 kB / 0.5652 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.2946, allocations: 2.031 kB / 0.5652 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001795/0.2948, allocations: 110.7 kB / 0.5653 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.2951, allocations: 0.669 MB / 0.5659 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.335e-05/0.2951, allocations: 19.36 kB / 0.5659 GB, free: 15.8 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2951, allocations: 0 / 0.5659 GB, free: 15.8 MB / 414.1 MB Notification: Performance of Templates: time 0.002576/0.2977, allocations: 0.9599 MB / 0.5669 GB, free: 14.84 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.583279586862773]