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.001632/0.001632, allocations: 81.8 kB / 20.68 MB, free: 1.035 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.002048/0.002048, allocations: 168.6 kB / 23.95 MB, free: 4.172 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.444/1.444, allocations: 177.2 MB / 204.3 MB, free: 9.188 MB / 190.1 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.2122/0.2122, allocations: 32.81 MB / 293.5 MB, free: 52 kB / 270.1 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 1.673e-06/1.673e-06, allocations: 0 / 440 MB, free: 8.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.331e-05/3.499e-05, allocations: 6.281 kB / 440 MB, free: 8.211 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001489/0.001524, allocations: 481.2 kB / 440.5 MB, free: 7.742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004028/0.005552, allocations: 2.283 MB / 442.8 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.98e-05/0.005581, allocations: 0 / 442.8 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.648e-05/0.005598, allocations: 0 / 442.8 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.592e-06/0.005605, allocations: 8 kB / 442.8 MB, free: 5.43 MB / 366.1 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.00289/0.008494, allocations: 1.106 MB / 443.9 MB, free: 4.324 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.177e-05/0.008536, allocations: 0 / 443.9 MB, free: 4.324 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.321e-05/0.008579, allocations: 4 kB / 443.9 MB, free: 4.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.514e-05/0.008604, allocations: 0 / 443.9 MB, free: 4.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.153e-05/0.008626, allocations: 0 / 443.9 MB, free: 4.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-06/0.008633, allocations: 4 kB / 443.9 MB, free: 4.316 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.01032, allocations: 0.9791 MB / 444.9 MB, free: 3.336 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.099e-05/0.01033, allocations: 0 / 444.9 MB, free: 3.336 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.576e-05/0.01035, allocations: 4 kB / 444.9 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007771/0.01113, allocations: 0.534 MB / 445.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.01113, allocations: 0 / 445.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.01113, allocations: 0 / 445.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.01114, allocations: 0 / 445.4 MB, free: 2.797 MB / 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.0005032/0.01165, allocations: 371.2 kB / 445.8 MB, free: 2.398 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.01169, allocations: 16.03 kB / 445.8 MB, free: 2.383 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.01173, allocations: 4.938 kB / 445.8 MB, free: 2.379 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.716e-05/0.01181, allocations: 101.8 kB / 445.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/0.01182, allocations: 384 / 445.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.5e-05/0.01184, allocations: 4.375 kB / 445.9 MB, free: 2.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001265/0.01196, allocations: 55.95 kB / 446 MB, free: 2.184 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.01197, allocations: 192 / 446 MB, free: 2.184 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.01198, allocations: 4.375 kB / 446 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.01199, allocations: 3.938 kB / 446 MB, free: 2.176 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.556e-05/0.01202, allocations: 25.7 kB / 446 MB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001229/0.01214, allocations: 105.3 kB / 446.1 MB, free: 2.012 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.859e-05/0.0122, allocations: 48.22 kB / 446.2 MB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.458e-05/0.01224, allocations: 38.62 kB / 446.2 MB, free: 1.902 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.177e-06/0.01224, allocations: 4 kB / 446.2 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.01229, allocations: 56.27 kB / 446.3 MB, free: 1.828 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.01229, allocations: 0 / 446.3 MB, free: 1.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000189/0.01248, allocations: 114.8 kB / 446.4 MB, free: 1.691 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.01254, allocations: 88.97 kB / 446.5 MB, free: 1.586 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.315e-05/0.01259, allocations: 93.86 kB / 446.5 MB, free: 1.484 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.0126, allocations: 29.64 kB / 446.6 MB, free: 1.449 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.302e-05/0.01264, allocations: 84.27 kB / 446.7 MB, free: 1.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.01266, allocations: 7.891 kB / 446.7 MB, free: 1.355 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/0.01269, allocations: 13.72 kB / 446.7 MB, free: 1.336 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.01283, allocations: 314.8 kB / 447 MB, free: 1.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.312e-05/0.01285, allocations: 25.7 kB / 447 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.061e-05/0.01288, allocations: 29.7 kB / 447 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.148e-05/0.01293, allocations: 60.25 kB / 447.1 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.01293, allocations: 0 / 447.1 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.828e-05/0.01302, allocations: 89.11 kB / 447.2 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.01305, allocations: 37.73 kB / 447.2 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.01306, allocations: 4 kB / 447.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.01307, allocations: 0 / 447.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.545e-06/0.01307, allocations: 3.984 kB / 447.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.01308, allocations: 7.922 kB / 447.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.445e-05/0.01309, allocations: 0 / 447.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.363e-06/0.0131, allocations: 4 kB / 447.2 MB, free: 0.7109 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 0.0001095/0.01321, allocations: 132.2 kB / 447.4 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-06/0.01322, allocations: 0 / 447.4 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.251e-05/0.01323, allocations: 7 kB / 447.4 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.01323, allocations: 0 / 447.4 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.01323, allocations: 4 kB / 447.4 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.01324, allocations: 3.938 kB / 447.4 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.567e-05/0.01331, allocations: 97.31 kB / 447.5 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.01331, allocations: 0 / 447.5 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.495e-06/0.01332, allocations: 4 kB / 447.5 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.01332, allocations: 0 / 447.5 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.77e-06/0.01332, allocations: 0 / 447.5 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.01333, allocations: 0 / 447.5 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.01333, allocations: 4 kB / 447.5 MB, free: 428 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001775/0.01351, allocations: 124.4 kB / 447.6 MB, free: 272 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.246e-06/0.01351, allocations: 4.031 kB / 447.6 MB, free: 268 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.01352, allocations: 4 kB / 447.6 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.05e-05/0.01353, allocations: 4 kB / 447.6 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-06/0.01354, allocations: 0 / 447.6 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.01354, allocations: 0 / 447.6 MB, free: 260 kB / 366.1 MB Notification: Performance of sorting global known variables: time 3.695e-05/0.01358, allocations: 79.22 kB / 447.7 MB, free: 180 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01358, allocations: 0 / 447.7 MB, free: 180 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004327/0.01401, allocations: 163.5 kB / 447.9 MB, free: 16 kB / 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.2163/0.2303, allocations: 422.5 kB / 448.3 MB, free: 21.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001947/0.2305, allocations: 113.8 kB / 448.4 MB, free: 21.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2305, allocations: 0 / 448.4 MB, free: 21.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.848e-05/0.2305, allocations: 82.8 kB / 448.5 MB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001667/0.2307, allocations: 3.125 kB / 448.5 MB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002712/0.231, allocations: 110.8 kB / 448.6 MB, free: 20.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.299e-05/0.231, allocations: 54.81 kB / 448.6 MB, free: 20.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.504e-06/0.231, allocations: 1.219 kB / 448.6 MB, free: 20.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.602e-05/0.2311, allocations: 13.59 kB / 448.6 MB, free: 20.71 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2311, allocations: 0 / 448.6 MB, free: 20.71 MB / 366.1 MB Notification: Performance of Templates: time 0.01268/0.2437, allocations: 4.67 MB / 453.3 MB, free: 20.29 MB / 366.1 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: 4.9680801667273045]