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.001407/0.001407, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 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.001549/0.001549, allocations: 215.5 kB / 24.48 MB, free: 3.836 MB / 14.72 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.475/1.475, allocations: 230.5 MB / 258.1 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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.2488/0.2488, allocations: 46.95 MB / 361.6 MB, free: 3.914 MB / 286.1 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 0.00249/0.00249, allocations: 83.88 kB / 0.4973 GB, free: 7.066 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3448, allocations: 66.08 MB / 0.5619 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001847/0.3466, allocations: 477.1 kB / 0.5623 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003866/0.3505, allocations: 2.283 MB / 0.5646 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.448e-05/0.3505, allocations: 3.938 kB / 0.5646 GB, free: 1.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.154e-05/0.3505, allocations: 0 / 0.5646 GB, free: 1.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.991e-06/0.3505, allocations: 0 / 0.5646 GB, free: 1.191 MB / 398.1 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.003117/0.3536, allocations: 1.109 MB / 0.5656 GB, free: 84 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.725e-05/0.3537, allocations: 0 / 0.5656 GB, free: 84 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.534e-05/0.3538, allocations: 11.97 kB / 0.5657 GB, free: 72 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.075e-05/0.3538, allocations: 0 / 0.5657 GB, free: 72 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.859e-05/0.3538, allocations: 3.938 kB / 0.5657 GB, free: 68 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.642e-06/0.3538, allocations: 0 / 0.5657 GB, free: 68 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.3556, allocations: 0.9756 MB / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.004e-05/0.3556, allocations: 0 / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.478e-05/0.3556, allocations: 4 kB / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007075/0.3563, allocations: 441.5 kB / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3563, allocations: 0 / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3563, allocations: 0 / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3563, allocations: 0 / 0.567 GB, free: 14.66 MB / 414.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.0005127/0.3569, allocations: 363.3 kB / 0.5674 GB, free: 14.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.3569, allocations: 12.03 kB / 0.5674 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.46e-05/0.3569, allocations: 4.938 kB / 0.5674 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.357, allocations: 110.5 kB / 0.5675 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.357, allocations: 384 / 0.5675 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.3571, allocations: 384 / 0.5675 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.3572, allocations: 59.72 kB / 0.5676 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.3572, allocations: 0 / 0.5676 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.3572, allocations: 0 / 0.5676 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.3572, allocations: 0 / 0.5676 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.037e-05/0.3572, allocations: 33.64 kB / 0.5676 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000129/0.3574, allocations: 97.27 kB / 0.5677 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.242e-05/0.3574, allocations: 52.3 kB / 0.5677 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.123e-05/0.3575, allocations: 30.56 kB / 0.5678 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.315e-06/0.3575, allocations: 7.938 kB / 0.5678 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.326e-05/0.3575, allocations: 60.33 kB / 0.5678 GB, free: 13.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3575, allocations: 0 / 0.5678 GB, free: 13.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002785/0.3578, allocations: 130.6 kB / 0.568 GB, free: 13.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.3579, allocations: 77.11 kB / 0.568 GB, free: 13.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.902e-05/0.3579, allocations: 93.81 kB / 0.5681 GB, free: 13.35 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.3579, allocations: 25.7 kB / 0.5681 GB, free: 13.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.533e-05/0.358, allocations: 84.14 kB / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.358, allocations: 0 / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.91e-05/0.358, allocations: 9.719 kB / 0.5682 GB, free: 13.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002074/0.3582, allocations: 323 kB / 0.5685 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.69e-05/0.3583, allocations: 29.69 kB / 0.5686 GB, free: 12.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.925e-05/0.3583, allocations: 25.7 kB / 0.5686 GB, free: 12.83 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.467e-05/0.3583, allocations: 60.27 kB / 0.5687 GB, free: 12.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.3583, allocations: 0 / 0.5687 GB, free: 12.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001135/0.3585, allocations: 93.05 kB / 0.5687 GB, free: 12.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.879e-05/0.3585, allocations: 37.69 kB / 0.5688 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.3585, allocations: 0 / 0.5688 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.3585, allocations: 3.938 kB / 0.5688 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.3585, allocations: 4.094 kB / 0.5688 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.3585, allocations: 0 / 0.5688 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.512e-05/0.3585, allocations: 0 / 0.5688 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.3585, allocations: 0 / 0.5688 GB, free: 12.59 MB / 414.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.0001013/0.3586, allocations: 135.5 kB / 0.5689 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-06/0.3586, allocations: 0 / 0.5689 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.78e-05/0.3587, allocations: 14.91 kB / 0.5689 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.3587, allocations: 0 / 0.5689 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3587, allocations: 4 kB / 0.5689 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-06/0.3587, allocations: 0 / 0.5689 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.511e-05/0.3588, allocations: 101.3 kB / 0.569 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3588, allocations: 0 / 0.569 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3588, allocations: 0 / 0.569 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.3588, allocations: 0 / 0.569 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.3588, allocations: 4 kB / 0.569 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3588, allocations: 3.938 kB / 0.569 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3588, allocations: 0 / 0.569 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001316/0.3589, allocations: 128.4 kB / 0.5692 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-06/0.3589, allocations: 0 / 0.5692 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.3589, allocations: 0 / 0.5692 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.129e-05/0.3589, allocations: 7.938 kB / 0.5692 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.811e-05/0.3589, allocations: 8.016 kB / 0.5692 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.3589, allocations: 0 / 0.5692 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.81e-05/0.359, allocations: 75.28 kB / 0.5693 GB, free: 12.04 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.359, allocations: 0 / 0.5693 GB, free: 12.04 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000522/0.3595, allocations: 159.5 kB / 0.5694 GB, free: 11.89 MB / 414.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.0007878/0.3603, allocations: 386.3 kB / 0.5698 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001617/0.3605, allocations: 114.8 kB / 0.5699 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3605, allocations: 3.938 kB / 0.5699 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.597e-05/0.3605, allocations: 81.11 kB / 0.57 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.3607, allocations: 0 / 0.57 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002567/0.3609, allocations: 140.4 kB / 0.5701 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.515e-05/0.361, allocations: 59.48 kB / 0.5702 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.618e-05/0.361, allocations: 7.438 kB / 0.5702 GB, free: 11 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.361, allocations: 0 / 0.5702 GB, free: 11 MB / 414.1 MB Notification: Performance of Templates: time 0.007863/0.3689, allocations: 3.927 MB / 0.574 GB, free: 7.074 MB / 414.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/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: 7.648759674280882]