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.001442/0.001442, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001034/0.001034, allocations: 165.2 kB / 24.99 MB, free: 8.219 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 1.053/1.053, allocations: 177 MB / 205.2 MB, free: 5.52 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.3221/0.3221, allocations: 34.86 MB / 296.6 MB, free: 464 kB / 266.7 MB " [Timeout remaining time 179] 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.593e-06/1.593e-06, allocations: 0 / 378.7 MB, free: 2.438 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.202e-05/2.361e-05, allocations: 2.312 kB / 378.7 MB, free: 2.434 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001066/0.001089, allocations: 482 kB / 379.2 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003311/0.0044, allocations: 2.353 MB / 381.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.268e-05/0.004433, allocations: 0 / 381.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.751e-05/0.00445, allocations: 0 / 381.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 7.745e-06/0.004458, allocations: 0 / 381.5 MB, free: 15.59 MB / 362.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.005788/0.01025, allocations: 1.128 MB / 382.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 8.282e-05/0.01033, allocations: 0 / 382.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.556e-05/0.01038, allocations: 3.984 kB / 382.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.225e-05/0.01043, allocations: 4 kB / 382.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.757e-05/0.01046, allocations: 0 / 382.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.226e-05/0.01048, allocations: 0 / 382.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004699/0.01518, allocations: 0.9869 MB / 383.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.073e-05/0.01519, allocations: 0 / 383.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.868e-05/0.01521, allocations: 0 / 383.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007626/0.01598, allocations: 0.5338 MB / 384.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.01598, allocations: 3.984 kB / 384.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.01599, allocations: 0 / 384.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.01599, allocations: 0 / 384.2 MB, free: 12.92 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.0004637/0.01646, allocations: 469.2 kB / 384.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.0165, allocations: 8.031 kB / 384.7 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.638e-05/0.01655, allocations: 8.875 kB / 384.7 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.805e-05/0.01664, allocations: 108.6 kB / 384.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.01665, allocations: 384 / 384.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.01667, allocations: 4.375 kB / 384.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.01678, allocations: 55.97 kB / 384.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.01678, allocations: 192 / 384.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.01679, allocations: 384 / 384.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.01681, allocations: 3.938 kB / 384.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.576e-05/0.01683, allocations: 37.62 kB / 384.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000119/0.01695, allocations: 108.6 kB / 385 MB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.767e-05/0.01701, allocations: 52.8 kB / 385 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.681e-05/0.01704, allocations: 37.39 kB / 385.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.492e-06/0.01704, allocations: 4.062 kB / 385.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003064/0.02011, allocations: 59.09 kB / 385.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.02011, allocations: 0 / 385.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002418/0.02035, allocations: 122.7 kB / 385.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.0204, allocations: 81.05 kB / 385.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.773e-05/0.02046, allocations: 146.2 kB / 385.5 MB, free: 11.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.02047, allocations: 25.7 kB / 385.5 MB, free: 11.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.3e-05/0.02052, allocations: 126.9 kB / 385.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.02054, allocations: 352 / 385.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.02057, allocations: 27.48 kB / 385.6 MB, free: 11.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.02072, allocations: 492.1 kB / 386.1 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.856e-05/0.02075, allocations: 29.7 kB / 386.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.762e-05/0.02077, allocations: 25.7 kB / 386.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.964e-05/0.02084, allocations: 67.03 kB / 386.2 MB, free: 10.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.02084, allocations: 0 / 386.2 MB, free: 10.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.7e-05/0.02094, allocations: 93.05 kB / 386.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.441e-05/0.02098, allocations: 33.7 kB / 386.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.02099, allocations: 0 / 386.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.551e-05/0.02102, allocations: 4.094 kB / 386.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.733e-06/0.02102, allocations: 0 / 386.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.02103, allocations: 3.938 kB / 386.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.76e-05/0.02105, allocations: 0 / 386.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.02106, allocations: 8 kB / 386.4 MB, free: 10.42 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.0001036/0.02116, allocations: 182.3 kB / 386.6 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.978e-06/0.02117, allocations: 7.938 kB / 386.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.134e-05/0.02119, allocations: 3 kB / 386.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.02119, allocations: 0 / 386.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.02119, allocations: 0 / 386.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.0212, allocations: 3.938 kB / 386.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.363e-05/0.02128, allocations: 112.6 kB / 386.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.02129, allocations: 0 / 386.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.02129, allocations: 0 / 386.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.02129, allocations: 0 / 386.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.0213, allocations: 7.922 kB / 386.7 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.0213, allocations: 0 / 386.7 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.0213, allocations: 0 / 386.7 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001204/0.02142, allocations: 135.8 kB / 386.8 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.512e-06/0.02143, allocations: 0 / 386.8 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.02145, allocations: 4 kB / 386.8 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.263e-06/0.02145, allocations: 4.031 kB / 386.8 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.583e-05/0.02147, allocations: 0 / 386.8 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-06/0.02147, allocations: 4 kB / 386.8 MB, free: 9.879 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.572e-05/0.02152, allocations: 123.1 kB / 387 MB, free: 9.758 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02152, allocations: 0 / 387 MB, free: 9.758 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004932/0.02201, allocations: 159.5 kB / 387.1 MB, free: 9.602 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.0007841/0.0228, allocations: 423.2 kB / 387.5 MB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003155/0.02595, allocations: 126.4 kB / 387.6 MB, free: 9.035 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.02595, allocations: 4 kB / 387.7 MB, free: 9.031 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.333e-05/0.026, allocations: 88.8 kB / 387.7 MB, free: 8.922 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.02613, allocations: 0 / 387.7 MB, free: 8.922 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000244/0.02638, allocations: 117.8 kB / 387.9 MB, free: 8.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.895e-05/0.02641, allocations: 55.36 kB / 387.9 MB, free: 8.695 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.167e-06/0.02642, allocations: 3.984 kB / 387.9 MB, free: 8.691 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.789e-05/0.02644, allocations: 8.5 kB / 387.9 MB, free: 8.684 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02644, allocations: 0 / 387.9 MB, free: 8.684 MB / 362.7 MB Notification: Performance of Templates: time 0.01462/0.04106, allocations: 4.722 MB / 392.6 MB, free: 3.957 MB / 362.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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5915840729139745]