Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.0007869/0.0007869, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.004353/0.004353, allocations: 159 kB / 24.7 MB, free: 9.441 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.9338/0.9338, allocations: 177 MB / 204.9 MB, free: 5.734 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.2264/0.2264, allocations: 34.24 MB / 295.6 MB, free: 0.6602 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.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 443.4 MB, free: 1.094 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.323e-05/2.464e-05, allocations: 4.953 kB / 443.4 MB, free: 1.09 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001344/0.001368, allocations: 484.9 kB / 443.9 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1832/0.1845, allocations: 2.284 MB / 446.1 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.76e-05/0.1846, allocations: 0 / 446.1 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.711e-05/0.1846, allocations: 0 / 446.1 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.1846, allocations: 0 / 446.1 MB, free: 43.21 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00138/0.186, allocations: 1.104 MB / 447.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.756e-05/0.186, allocations: 3.406 kB / 447.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.874e-05/0.1861, allocations: 5.703 kB / 447.3 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.558e-05/0.1861, allocations: 4 kB / 447.3 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.98e-05/0.1861, allocations: 3.031 kB / 447.3 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.1861, allocations: 0 / 447.3 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007908/0.1869, allocations: 0.9742 MB / 448.2 MB, free: 42.34 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.224e-06/0.1869, allocations: 7.578 kB / 448.2 MB, free: 42.34 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.653e-05/0.1869, allocations: 2.75 kB / 448.2 MB, free: 42.34 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004/0.1873, allocations: 0.532 MB / 448.8 MB, free: 42.11 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1873, allocations: 0 / 448.8 MB, free: 42.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1873, allocations: 2.469 kB / 448.8 MB, free: 42.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1873, allocations: 0 / 448.8 MB, free: 42.11 MB / 410.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.0002565/0.1876, allocations: 366.4 kB / 449.1 MB, free: 41.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.1876, allocations: 11.47 kB / 449.1 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.015e-05/0.1876, allocations: 1.781 kB / 449.1 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.649e-05/0.1877, allocations: 107.2 kB / 449.3 MB, free: 41.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.859e-06/0.1877, allocations: 7.281 kB / 449.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-06/0.1877, allocations: 384 / 449.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.665e-05/0.1878, allocations: 58.06 kB / 449.3 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1878, allocations: 192 / 449.3 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-06/0.1878, allocations: 384 / 449.3 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.1878, allocations: 3.938 kB / 449.3 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.714e-05/0.1878, allocations: 31.23 kB / 449.4 MB, free: 41.53 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.261e-05/0.1879, allocations: 98.33 kB / 449.4 MB, free: 41.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.325e-05/0.1879, allocations: 51.45 kB / 449.5 MB, free: 41.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.273e-05/0.1879, allocations: 33.59 kB / 449.5 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.622e-06/0.1879, allocations: 6.906 kB / 449.5 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.1879, allocations: 58.98 kB / 449.6 MB, free: 41.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 4.91e-07/0.1879, allocations: 0 / 449.6 MB, free: 41.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001326/0.1881, allocations: 120 kB / 449.7 MB, free: 41.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.366e-05/0.1881, allocations: 88.02 kB / 449.8 MB, free: 41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.435e-05/0.1881, allocations: 89.86 kB / 449.9 MB, free: 40.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.266e-06/0.1881, allocations: 25.7 kB / 449.9 MB, free: 40.87 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.031e-06/0.1881, allocations: 80.14 kB / 450 MB, free: 40.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.367e-05/0.1881, allocations: 6.141 kB / 450 MB, free: 40.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.709e-05/0.1882, allocations: 13 kB / 450 MB, free: 40.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.368e-05/0.1882, allocations: 317.8 kB / 450.3 MB, free: 40.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.448e-06/0.1882, allocations: 25.7 kB / 450.3 MB, free: 40.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.054e-06/0.1882, allocations: 32.55 kB / 450.4 MB, free: 40.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.243e-05/0.1882, allocations: 59.08 kB / 450.4 MB, free: 40.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1882, allocations: 0 / 450.4 MB, free: 40.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.152e-05/0.1883, allocations: 92.53 kB / 450.5 MB, free: 40.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.1883, allocations: 39.2 kB / 450.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.1883, allocations: 1.5 kB / 450.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1883, allocations: 0 / 450.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.313e-06/0.1883, allocations: 7.375 kB / 450.6 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.1883, allocations: 3.938 kB / 450.6 MB, free: 40.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.23e-05/0.1883, allocations: 2.812 kB / 450.6 MB, free: 40.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.1883, allocations: 0 / 450.6 MB, free: 40.17 MB / 410.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 3.141e-05/0.1883, allocations: 134.3 kB / 450.7 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.196e-06/0.1883, allocations: 0 / 450.7 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.785e-06/0.1884, allocations: 3 kB / 450.7 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.1884, allocations: 2.812 kB / 450.7 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1884, allocations: 0 / 450.7 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1884, allocations: 7.359 kB / 450.7 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.592e-05/0.1884, allocations: 97.33 kB / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1884, allocations: 5.625 kB / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.6e-07/0.1884, allocations: 0 / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-07/0.1884, allocations: 0 / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-06/0.1884, allocations: 3.938 kB / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.1884, allocations: 0 / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1884, allocations: 2.906 kB / 450.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.516e-05/0.1884, allocations: 123.2 kB / 450.9 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.166e-06/0.1884, allocations: 0 / 450.9 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.437e-06/0.1885, allocations: 5.938 kB / 451 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.819e-06/0.1885, allocations: 0 / 451 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.517e-06/0.1885, allocations: 4.031 kB / 451 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-06/0.1885, allocations: 0 / 451 MB, free: 39.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.887e-06/0.1885, allocations: 81.72 kB / 451 MB, free: 39.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1885, allocations: 0 / 451 MB, free: 39.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002508/0.1887, allocations: 159.3 kB / 451.2 MB, free: 39.62 MB / 410.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.0004492/0.1892, allocations: 417.1 kB / 451.6 MB, free: 39.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.843e-05/0.1893, allocations: 112.5 kB / 451.7 MB, free: 39.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1893, allocations: 3.125 kB / 451.7 MB, free: 39.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.184e-05/0.1893, allocations: 87.36 kB / 451.8 MB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.414e-05/0.1894, allocations: 2.531 kB / 451.8 MB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001273/0.1895, allocations: 133 kB / 451.9 MB, free: 39.06 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.985e-05/0.1895, allocations: 61.28 kB / 452 MB, free: 38.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.818e-06/0.1895, allocations: 11.38 kB / 452 MB, free: 38.98 MB / 410.7 MB Notification: Performance of SimCode: time 3.91e-07/0.1895, allocations: 0 / 452 MB, free: 38.98 MB / 410.7 MB Notification: Performance of Templates: time 0.00331/0.1928, allocations: 3.966 MB / 456 MB, free: 38.55 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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: 4.674617106094956]