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.001524/0.001524, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001766/0.001766, allocations: 205.6 kB / 23.72 MB, free: 4.391 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.52/1.52, allocations: 230.5 MB / 257.4 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.2455/0.2455, allocations: 46.93 MB / 360.8 MB, free: 3.918 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.002525/0.002525, allocations: 75.88 kB / 0.4966 GB, free: 7.062 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.3973, allocations: 66.09 MB / 0.5612 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001784/0.3991, allocations: 467.7 kB / 0.5616 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004096/0.4032, allocations: 2.291 MB / 0.5638 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.516e-05/0.4032, allocations: 0 / 0.5638 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.984e-05/0.4032, allocations: 0 / 0.5638 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.224e-06/0.4032, allocations: 0 / 0.5638 GB, free: 1.203 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.003471/0.4067, allocations: 1.105 MB / 0.5649 GB, free: 100 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.729e-05/0.4068, allocations: 7.984 kB / 0.5649 GB, free: 92 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.7e-05/0.4069, allocations: 0 / 0.5649 GB, free: 92 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.874e-05/0.4069, allocations: 11.92 kB / 0.5649 GB, free: 80 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.801e-05/0.4069, allocations: 0 / 0.5649 GB, free: 80 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.855e-06/0.4069, allocations: 0 / 0.5649 GB, free: 80 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00185/0.4088, allocations: 0.9717 MB / 0.5659 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.4088, allocations: 0 / 0.5659 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.728e-05/0.4088, allocations: 0 / 0.5659 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006589/0.4095, allocations: 445.5 kB / 0.5663 GB, free: 14.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4095, allocations: 0 / 0.5663 GB, free: 14.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4095, allocations: 0 / 0.5663 GB, free: 14.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.4095, allocations: 0 / 0.5663 GB, free: 14.68 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.0004985/0.41, allocations: 363.3 kB / 0.5667 GB, free: 14.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.41, allocations: 8.031 kB / 0.5667 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.398e-05/0.4101, allocations: 0.9375 kB / 0.5667 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.4102, allocations: 110.5 kB / 0.5668 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.4102, allocations: 384 / 0.5668 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.4102, allocations: 384 / 0.5668 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.4104, allocations: 63.7 kB / 0.5668 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.4104, allocations: 4 kB / 0.5668 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.4104, allocations: 4 kB / 0.5668 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.4104, allocations: 0 / 0.5668 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.939e-05/0.4104, allocations: 37.58 kB / 0.5669 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001302/0.4106, allocations: 105.2 kB / 0.567 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.809e-05/0.4106, allocations: 44.31 kB / 0.567 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.165e-05/0.4107, allocations: 34.55 kB / 0.567 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.838e-06/0.4107, allocations: 0 / 0.567 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.165e-05/0.4107, allocations: 60.33 kB / 0.5671 GB, free: 13.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.4107, allocations: 0 / 0.5671 GB, free: 13.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002363/0.411, allocations: 130.7 kB / 0.5672 GB, free: 13.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.411, allocations: 77.11 kB / 0.5673 GB, free: 13.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.174e-05/0.4111, allocations: 93.81 kB / 0.5674 GB, free: 13.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.4111, allocations: 25.7 kB / 0.5674 GB, free: 13.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.762e-05/0.4112, allocations: 80.14 kB / 0.5675 GB, free: 13.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.4112, allocations: 0 / 0.5675 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/0.4112, allocations: 17.72 kB / 0.5675 GB, free: 13.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.4114, allocations: 314.8 kB / 0.5678 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.4115, allocations: 29.7 kB / 0.5678 GB, free: 12.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.131e-05/0.4115, allocations: 25.83 kB / 0.5679 GB, free: 12.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.937e-05/0.4116, allocations: 64.33 kB / 0.5679 GB, free: 12.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.4116, allocations: 3.938 kB / 0.5679 GB, free: 12.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001101/0.4117, allocations: 97.03 kB / 0.568 GB, free: 12.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.192e-05/0.4117, allocations: 32.05 kB / 0.5681 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.4117, allocations: 0 / 0.5681 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.4118, allocations: 3.938 kB / 0.5681 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.065e-06/0.4118, allocations: 4 kB / 0.5681 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.4118, allocations: 0 / 0.5681 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.592e-05/0.4118, allocations: 0 / 0.5681 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.4118, allocations: 4.031 kB / 0.5681 GB, free: 12.6 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.0001085/0.4119, allocations: 135.5 kB / 0.5682 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-06/0.4119, allocations: 0 / 0.5682 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.121e-05/0.4119, allocations: 10.92 kB / 0.5682 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.4119, allocations: 0 / 0.5682 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4119, allocations: 0 / 0.5682 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.4119, allocations: 0 / 0.5682 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001606/0.4121, allocations: 101.3 kB / 0.5683 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4121, allocations: 0 / 0.5683 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.4121, allocations: 0 / 0.5683 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.4121, allocations: 3.938 kB / 0.5683 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.4121, allocations: 4 kB / 0.5683 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.4121, allocations: 3.938 kB / 0.5683 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.4121, allocations: 4 kB / 0.5683 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001338/0.4123, allocations: 120.5 kB / 0.5684 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.656e-06/0.4123, allocations: 0 / 0.5684 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.4123, allocations: 3.984 kB / 0.5684 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.259e-05/0.4123, allocations: 7.938 kB / 0.5684 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.143e-05/0.4123, allocations: 4 kB / 0.5684 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.4123, allocations: 0 / 0.5684 GB, free: 12.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.663e-05/0.4123, allocations: 75.28 kB / 0.5685 GB, free: 12.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4123, allocations: 4.031 kB / 0.5685 GB, free: 12.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004763/0.4128, allocations: 159.5 kB / 0.5687 GB, free: 11.9 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.0008139/0.4136, allocations: 387.3 kB / 0.569 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001595/0.4138, allocations: 110.8 kB / 0.5691 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4138, allocations: 0 / 0.5691 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.542e-05/0.4139, allocations: 85.05 kB / 0.5692 GB, free: 11.28 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.414, allocations: 7.984 kB / 0.5692 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002271/0.4142, allocations: 106.7 kB / 0.5693 GB, free: 11.13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.218e-05/0.4143, allocations: 55.36 kB / 0.5694 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.412e-06/0.4143, allocations: 0 / 0.5694 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.51e-05/0.4143, allocations: 7.562 kB / 0.5694 GB, free: 11.05 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4143, allocations: 4 kB / 0.5694 GB, free: 11.05 MB / 414.1 MB Notification: Performance of Templates: time 0.009354/0.4236, allocations: 4.603 MB / 0.5739 GB, free: 6.441 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/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_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: 5.516194658353925]