Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 85.72 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 162.5 kB / 23.95 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.568/1.568, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2522/0.2522, allocations: 34.29 MB / 295 MB, free: 14.57 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 442.6 MB, free: 5.453 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.24e-05/3.411e-05, allocations: 6.219 kB / 442.6 MB, free: 5.445 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001499/0.001533, allocations: 496.5 kB / 443.1 MB, free: 4.965 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004174/0.005707, allocations: 2.287 MB / 445.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.575e-05/0.005733, allocations: 0 / 445.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.703e-05/0.00575, allocations: 0 / 445.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.636e-06/0.005759, allocations: 0 / 445.4 MB, free: 2.656 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.002966/0.008724, allocations: 1.108 MB / 446.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.414e-05/0.008779, allocations: 3.984 kB / 446.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.651e-05/0.008825, allocations: 0 / 446.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.041e-05/0.008856, allocations: 4 kB / 446.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.56e-05/0.008881, allocations: 0 / 446.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.916e-06/0.00889, allocations: 0 / 446.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001701/0.01059, allocations: 0.9792 MB / 447.5 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.071e-05/0.0106, allocations: 0 / 447.5 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.01062, allocations: 0 / 447.5 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008269/0.01145, allocations: 0.5379 MB / 448 MB, free: 20 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.01146, allocations: 0 / 448 MB, free: 20 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01146, allocations: 0 / 448 MB, free: 20 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.01146, allocations: 0 / 448 MB, free: 20 kB / 366.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.2452/0.2567, allocations: 365.7 kB / 448.4 MB, free: 19.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.2567, allocations: 9.844 kB / 448.4 MB, free: 19.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.168e-05/0.2568, allocations: 4.594 kB / 448.4 MB, free: 19.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.781e-05/0.2568, allocations: 109.3 kB / 448.5 MB, free: 18.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-06/0.2568, allocations: 1.469 kB / 448.5 MB, free: 18.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.2568, allocations: 1.406 kB / 448.5 MB, free: 18.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.594e-05/0.2569, allocations: 56.72 kB / 448.6 MB, free: 18.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.2569, allocations: 1.375 kB / 448.6 MB, free: 18.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.2569, allocations: 4.312 kB / 448.6 MB, free: 18.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.257, allocations: 0 / 448.6 MB, free: 18.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.518e-05/0.257, allocations: 33.56 kB / 448.6 MB, free: 18.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.117e-05/0.2571, allocations: 101.5 kB / 448.7 MB, free: 18.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.251e-05/0.2571, allocations: 43.12 kB / 448.8 MB, free: 18.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.033e-05/0.2571, allocations: 35.38 kB / 448.8 MB, free: 18.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-06/0.2571, allocations: 1.188 kB / 448.8 MB, free: 18.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.2572, allocations: 62.12 kB / 448.9 MB, free: 18.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.593e-06/0.2572, allocations: 2.594 kB / 448.9 MB, free: 18.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001865/0.2574, allocations: 117.1 kB / 449 MB, free: 18.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.835e-05/0.2574, allocations: 77.77 kB / 449 MB, free: 18.28 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.535e-05/0.2574, allocations: 90.95 kB / 449.1 MB, free: 18.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.816e-06/0.2574, allocations: 26.45 kB / 449.2 MB, free: 18.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.376e-05/0.2574, allocations: 85.12 kB / 449.2 MB, free: 18.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.2574, allocations: 3.953 kB / 449.2 MB, free: 18.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.429e-05/0.2575, allocations: 17.14 kB / 449.3 MB, free: 18.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.057e-05/0.2575, allocations: 316.7 kB / 449.6 MB, free: 17.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.618e-05/0.2575, allocations: 27.14 kB / 449.6 MB, free: 17.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.031e-05/0.2576, allocations: 27.59 kB / 449.6 MB, free: 17.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.914e-05/0.2576, allocations: 71.77 kB / 449.7 MB, free: 17.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2576, allocations: 1.562 kB / 449.7 MB, free: 17.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.757e-05/0.2576, allocations: 85.53 kB / 449.8 MB, free: 17.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.2577, allocations: 32.11 kB / 449.8 MB, free: 17.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.2577, allocations: 1.469 kB / 449.8 MB, free: 17.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.2577, allocations: 0 / 449.8 MB, free: 17.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.2577, allocations: 0 / 449.8 MB, free: 17.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.2577, allocations: 5.172 kB / 449.8 MB, free: 17.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.593e-05/0.2577, allocations: 3.938 kB / 449.8 MB, free: 17.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.2577, allocations: 1.75 kB / 449.8 MB, free: 17.46 MB / 366.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 6.268e-05/0.2578, allocations: 137.7 kB / 450 MB, free: 17.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.574e-06/0.2578, allocations: 0 / 450 MB, free: 17.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.279e-05/0.2578, allocations: 6.281 kB / 450 MB, free: 17.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.2578, allocations: 0 / 450 MB, free: 17.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.902e-06/0.2578, allocations: 2.203 kB / 450 MB, free: 17.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.2578, allocations: 3.719 kB / 450 MB, free: 17.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.329e-05/0.2579, allocations: 102.1 kB / 450.1 MB, free: 17.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2579, allocations: 1.984 kB / 450.1 MB, free: 17.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.292e-06/0.2579, allocations: 3.938 kB / 450.1 MB, free: 17.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.2579, allocations: 0 / 450.1 MB, free: 17.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.2579, allocations: 2.031 kB / 450.1 MB, free: 17.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.2579, allocations: 0 / 450.1 MB, free: 17.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2579, allocations: 6.766 kB / 450.1 MB, free: 17.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.075e-05/0.258, allocations: 120.4 kB / 450.2 MB, free: 17.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.47e-06/0.258, allocations: 4.328 kB / 450.2 MB, free: 17.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.258, allocations: 1.812 kB / 450.2 MB, free: 17.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.709e-06/0.258, allocations: 1.094 kB / 450.2 MB, free: 17.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.042e-05/0.258, allocations: 1.031 kB / 450.2 MB, free: 17.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.258, allocations: 3.844 kB / 450.2 MB, free: 17.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.802e-05/0.2581, allocations: 76.38 kB / 450.3 MB, free: 16.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2581, allocations: 3.938 kB / 450.3 MB, free: 16.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005084/0.2586, allocations: 163.7 kB / 450.5 MB, free: 16.95 MB / 366.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.0009092/0.2595, allocations: 421.7 kB / 450.9 MB, free: 16.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001179/0.2596, allocations: 115.2 kB / 451 MB, free: 16.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2596, allocations: 1.094 kB / 451 MB, free: 16.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.827e-05/0.2596, allocations: 81.11 kB / 451.1 MB, free: 16.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.2598, allocations: 5.562 kB / 451.1 MB, free: 16.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001965/0.26, allocations: 104.4 kB / 451.2 MB, free: 16.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.875e-05/0.26, allocations: 56.31 kB / 451.2 MB, free: 16.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.562e-06/0.26, allocations: 4.656 kB / 451.2 MB, free: 16.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.351e-05/0.26, allocations: 9.969 kB / 451.2 MB, free: 16.4 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.26, allocations: 0 / 451.2 MB, free: 16.4 MB / 366.1 MB Notification: Performance of Templates: time 0.0104/0.2704, allocations: 4.674 MB / 455.9 MB, free: 15.92 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 5.263136886060238]