Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001683/0.001683, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001944/0.001944, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.53/1.53, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3363/0.3363, allocations: 32.8 MB / 293.9 MB, free: 1.195 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.464e-06/2.464e-06, allocations: 0 / 375.2 MB, free: 5.035 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.094e-05/3.34e-05, allocations: 2.312 kB / 375.2 MB, free: 5.031 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002261/0.002294, allocations: 488.1 kB / 375.7 MB, free: 4.555 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.005624/0.007918, allocations: 2.284 MB / 378 MB, free: 2.25 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.055e-05/0.007949, allocations: 0 / 378 MB, free: 2.25 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.121e-05/0.00796, allocations: 0 / 378 MB, free: 2.25 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.101e-06/0.007966, allocations: 0 / 378 MB, free: 2.25 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.00425/0.01222, allocations: 1.113 MB / 379.1 MB, free: 1.133 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.243e-05/0.01228, allocations: 7.984 kB / 379.1 MB, free: 1.125 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.733e-05/0.01233, allocations: 4 kB / 379.1 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.175e-05/0.01236, allocations: 0 / 379.1 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.472e-05/0.01238, allocations: 0 / 379.1 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.784e-06/0.01239, allocations: 0 / 379.1 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00259/0.01498, allocations: 0.9791 MB / 380.1 MB, free: 144 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.748e-06/0.01499, allocations: 4 kB / 380.1 MB, free: 140 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.078e-05/0.01502, allocations: 4 kB / 380.1 MB, free: 136 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001563/0.01658, allocations: 0.53 MB / 380.6 MB, free: 15.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.01659, allocations: 3.938 kB / 380.6 MB, free: 15.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01659, allocations: 0 / 380.6 MB, free: 15.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.01659, allocations: 0 / 380.6 MB, free: 15.6 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.0006714/0.01726, allocations: 367.2 kB / 381 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.01731, allocations: 12.03 kB / 381 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.372e-05/0.01736, allocations: 4.875 kB / 381 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.01748, allocations: 101.8 kB / 381.1 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.0175, allocations: 4.375 kB / 381.1 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.876e-06/0.01751, allocations: 4.375 kB / 381.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.01764, allocations: 51.97 kB / 381.2 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.01765, allocations: 192 / 381.2 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.01767, allocations: 8.359 kB / 381.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.666e-05/0.01768, allocations: 3.938 kB / 381.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.752e-05/0.01773, allocations: 25.7 kB / 381.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001651/0.0179, allocations: 97.33 kB / 381.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.824e-05/0.01798, allocations: 48.22 kB / 381.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.38e-05/0.01803, allocations: 34.66 kB / 381.4 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.01804, allocations: 4 kB / 381.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.197e-05/0.01812, allocations: 60.25 kB / 381.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.01812, allocations: 0 / 381.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002999/0.01842, allocations: 122.8 kB / 381.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.106e-05/0.01851, allocations: 88.98 kB / 381.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.399e-05/0.01859, allocations: 89.86 kB / 381.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.01861, allocations: 25.7 kB / 381.8 MB, free: 14.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.01867, allocations: 84.12 kB / 381.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.01869, allocations: 0 / 381.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.01873, allocations: 13.72 kB / 381.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002209/0.01895, allocations: 315 kB / 382.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.287e-05/0.01899, allocations: 29.7 kB / 382.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.644e-05/0.01902, allocations: 29.7 kB / 382.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.645e-05/0.01911, allocations: 60.27 kB / 382.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01911, allocations: 0 / 382.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001477/0.01926, allocations: 93.09 kB / 382.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.709e-05/0.01931, allocations: 39.45 kB / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.01931, allocations: 0 / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.01933, allocations: 0 / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.01933, allocations: 0 / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.01934, allocations: 8.031 kB / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.092e-05/0.01936, allocations: 4 kB / 382.4 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-06/0.01937, allocations: 0 / 382.4 MB, free: 13.53 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.0001528/0.01952, allocations: 139.5 kB / 382.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.765e-05/0.01954, allocations: 3.953 kB / 382.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.052e-05/0.01955, allocations: 3 kB / 382.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.01955, allocations: 0 / 382.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.01956, allocations: 0 / 382.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.01956, allocations: 3.938 kB / 382.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.01968, allocations: 97.33 kB / 382.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.01969, allocations: 4 kB / 382.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.938e-06/0.01969, allocations: 3.984 kB / 382.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.01969, allocations: 0 / 382.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.0197, allocations: 0 / 382.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.0197, allocations: 4 kB / 382.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.0197, allocations: 4 kB / 382.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002013/0.01991, allocations: 124.4 kB / 382.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-06/0.01991, allocations: 0 / 382.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.01993, allocations: 4 kB / 382.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.681e-05/0.01995, allocations: 4 kB / 382.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.762e-05/0.01997, allocations: 4.031 kB / 382.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.01997, allocations: 0 / 382.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.643e-05/0.02004, allocations: 79.22 kB / 382.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.02004, allocations: 0 / 382.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008137/0.02085, allocations: 159.5 kB / 383 MB, free: 12.83 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.001338/0.02219, allocations: 416.8 kB / 383.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001902/0.02238, allocations: 114.8 kB / 383.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.02238, allocations: 0 / 383.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.523e-05/0.02247, allocations: 81.11 kB / 383.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002073/0.02267, allocations: 11.88 kB / 383.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002944/0.02297, allocations: 112 kB / 383.8 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.786e-05/0.02303, allocations: 55.48 kB / 383.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.262e-06/0.02304, allocations: 4 kB / 383.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.019e-05/0.02306, allocations: 8.5 kB / 383.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.02306, allocations: 0 / 383.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of Templates: time 0.01462/0.03768, allocations: 4.716 MB / 388.5 MB, free: 7.234 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.076787307974882]