Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001368/0.001368, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002294/0.002294, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.539/1.539, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2469/0.2469, allocations: 46.96 MB / 360.9 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00239/0.00239, allocations: 67.91 kB / 0.4966 GB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4135/0.4159, allocations: 66.03 MB / 0.561 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002134/0.418, allocations: 485 kB / 0.5615 GB, free: 3.848 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004108/0.4221, allocations: 2.283 MB / 0.5637 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.735e-05/0.4222, allocations: 0 / 0.5637 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.954e-05/0.4222, allocations: 0 / 0.5637 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.885e-06/0.4222, allocations: 4 kB / 0.5637 GB, free: 1.543 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.003483/0.4257, allocations: 1.109 MB / 0.5648 GB, free: 444 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.515e-05/0.4257, allocations: 0 / 0.5648 GB, free: 444 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.563e-05/0.4258, allocations: 0 / 0.5648 GB, free: 444 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.783e-05/0.4258, allocations: 7.984 kB / 0.5648 GB, free: 436 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.716e-05/0.4259, allocations: 0 / 0.5648 GB, free: 436 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.933e-06/0.4259, allocations: 0 / 0.5648 GB, free: 436 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002148/0.428, allocations: 0.9756 MB / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.2e-05/0.428, allocations: 0 / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.595e-05/0.4281, allocations: 0 / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001115/0.4292, allocations: 453.7 kB / 0.5662 GB, free: 15.01 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4292, allocations: 0 / 0.5662 GB, free: 15.01 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4292, allocations: 0 / 0.5662 GB, free: 15.01 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.4292, allocations: 0 / 0.5662 GB, free: 15.01 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.0006852/0.4299, allocations: 359.3 kB / 0.5666 GB, free: 14.62 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.4299, allocations: 8.031 kB / 0.5666 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.242e-05/0.43, allocations: 4.938 kB / 0.5666 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.4301, allocations: 110.5 kB / 0.5667 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.4301, allocations: 384 / 0.5667 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.4301, allocations: 384 / 0.5667 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.4303, allocations: 63.7 kB / 0.5667 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.4303, allocations: 3.938 kB / 0.5667 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.4303, allocations: 0 / 0.5667 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.4303, allocations: 3.938 kB / 0.5667 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.837e-05/0.4303, allocations: 25.7 kB / 0.5668 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001606/0.4305, allocations: 101.3 kB / 0.5669 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.145e-05/0.4306, allocations: 52.31 kB / 0.5669 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.793e-05/0.4306, allocations: 34.55 kB / 0.567 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.4306, allocations: 0 / 0.567 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.428e-05/0.4307, allocations: 56.27 kB / 0.567 GB, free: 14.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.573e-06/0.4307, allocations: 4.062 kB / 0.567 GB, free: 14.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002649/0.4309, allocations: 122.7 kB / 0.5671 GB, free: 13.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.226e-05/0.431, allocations: 81.09 kB / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.414e-05/0.4311, allocations: 93.81 kB / 0.5673 GB, free: 13.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.4311, allocations: 25.7 kB / 0.5673 GB, free: 13.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.092e-05/0.4311, allocations: 80.14 kB / 0.5674 GB, free: 13.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.4312, allocations: 8.062 kB / 0.5674 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.315e-05/0.4312, allocations: 13.72 kB / 0.5674 GB, free: 13.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.4314, allocations: 314.8 kB / 0.5677 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.333e-05/0.4314, allocations: 29.7 kB / 0.5677 GB, free: 13.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.328e-05/0.4315, allocations: 25.7 kB / 0.5678 GB, free: 13.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.037e-05/0.4315, allocations: 68.19 kB / 0.5678 GB, free: 13.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4315, allocations: 0 / 0.5678 GB, free: 13.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001062/0.4317, allocations: 93.05 kB / 0.5679 GB, free: 12.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.249e-05/0.4317, allocations: 29.7 kB / 0.5679 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.4317, allocations: 4.094 kB / 0.568 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.4317, allocations: 3.938 kB / 0.568 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.31e-07/0.4317, allocations: 0 / 0.568 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.4317, allocations: 7.984 kB / 0.568 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.709e-05/0.4317, allocations: 0 / 0.568 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.4318, allocations: 0 / 0.568 GB, free: 12.94 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.0001194/0.4319, allocations: 135.5 kB / 0.5681 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-06/0.4319, allocations: 0 / 0.5681 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.546e-05/0.4319, allocations: 6.938 kB / 0.5681 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.4319, allocations: 0 / 0.5681 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.4319, allocations: 4 kB / 0.5681 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.4319, allocations: 7.984 kB / 0.5681 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.733e-05/0.432, allocations: 101.3 kB / 0.5682 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.432, allocations: 0 / 0.5682 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.432, allocations: 0 / 0.5682 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.432, allocations: 0 / 0.5682 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.432, allocations: 3.938 kB / 0.5682 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.432, allocations: 3.938 kB / 0.5682 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.432, allocations: 0 / 0.5682 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.4322, allocations: 124.5 kB / 0.5683 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-06/0.4322, allocations: 3.938 kB / 0.5683 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.4322, allocations: 4.031 kB / 0.5683 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.307e-05/0.4322, allocations: 3.938 kB / 0.5683 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.614e-05/0.4322, allocations: 0 / 0.5683 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-06/0.4322, allocations: 4 kB / 0.5684 GB, free: 12.47 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.558e-05/0.4323, allocations: 75.28 kB / 0.5684 GB, free: 12.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4323, allocations: 0 / 0.5684 GB, free: 12.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005845/0.4328, allocations: 155.5 kB / 0.5686 GB, free: 12.24 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.0009693/0.4338, allocations: 395.2 kB / 0.5689 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001617/0.434, allocations: 118.7 kB / 0.5691 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.434, allocations: 0 / 0.5691 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.251e-05/0.434, allocations: 85.05 kB / 0.5691 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001493/0.4342, allocations: 4.125 kB / 0.5691 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002518/0.4344, allocations: 114.7 kB / 0.5693 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.728e-05/0.4345, allocations: 55.36 kB / 0.5693 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.022e-06/0.4345, allocations: 0 / 0.5693 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.861e-05/0.4345, allocations: 7.438 kB / 0.5693 GB, free: 11.38 MB / 414.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4345, allocations: 0 / 0.5693 GB, free: 11.38 MB / 414.1 MB Notification: Performance of Templates: time 0.009829/0.4444, allocations: 4.604 MB / 0.5738 GB, free: 6.777 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.494029063731432]