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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 222.9 MB / 241.6 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001071, allocations: 97.92 kB / 291.9 MB, free: 10.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3764/0.3764, allocations: 44.13 MB / 386.1 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 51.92 kB / 457.7 MB, free: 2.332 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4189/0.42, allocations: 60.8 MB / 0.5064 GB, free: 38.42 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001966/0.422, allocations: 0.5343 MB / 0.5069 GB, free: 38.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003055/0.4251, allocations: 2.339 MB / 0.5092 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.633e-05/0.4251, allocations: 6.812 kB / 0.5092 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.138e-05/0.4251, allocations: 0 / 0.5092 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.412e-06/0.4251, allocations: 0 / 0.5092 GB, free: 36.47 MB / 378.7 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.002509/0.4277, allocations: 1.031 MB / 0.5102 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.561e-05/0.4277, allocations: 7.984 kB / 0.5102 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.841e-05/0.4278, allocations: 2.906 kB / 0.5102 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.699e-05/0.4278, allocations: 0 / 0.5102 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.347e-05/0.4279, allocations: 0 / 0.5102 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.719e-06/0.4279, allocations: 0 / 0.5102 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001713/0.4296, allocations: 0.9582 MB / 0.5111 GB, free: 35.58 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.751e-05/0.4296, allocations: 3.984 kB / 0.5111 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.001e-05/0.4297, allocations: 0 / 0.5111 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005777/0.4303, allocations: 419.7 kB / 0.5115 GB, free: 35.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.4303, allocations: 2.656 kB / 0.5116 GB, free: 35.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4303, allocations: 0 / 0.5116 GB, free: 35.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.4303, allocations: 0 / 0.5116 GB, free: 35.41 MB / 378.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.0004183/0.4307, allocations: 427.3 kB / 0.512 GB, free: 34.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.4308, allocations: 11.78 kB / 0.512 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.571e-05/0.4308, allocations: 3.875 kB / 0.512 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.494e-05/0.4309, allocations: 160.4 kB / 0.5121 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.4309, allocations: 384 / 0.5121 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-06/0.4309, allocations: 384 / 0.5121 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.64e-05/0.431, allocations: 36.73 kB / 0.5122 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.431, allocations: 0 / 0.5122 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.431, allocations: 0 / 0.5122 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.431, allocations: 2.406 kB / 0.5122 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.003e-05/0.4311, allocations: 7.406 kB / 0.5122 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001037/0.4312, allocations: 148.3 kB / 0.5123 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.012e-05/0.4312, allocations: 18.58 kB / 0.5123 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.583e-05/0.4313, allocations: 12.05 kB / 0.5123 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.786e-06/0.4313, allocations: 0 / 0.5123 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.4313, allocations: 67.61 kB / 0.5124 GB, free: 34.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.4313, allocations: 0 / 0.5124 GB, free: 34.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001803/0.4315, allocations: 63.31 kB / 0.5125 GB, free: 34.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.4315, allocations: 79.89 kB / 0.5125 GB, free: 34.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.189e-05/0.4316, allocations: 93.86 kB / 0.5126 GB, free: 34.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.4316, allocations: 29.03 kB / 0.5127 GB, free: 34.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.46e-05/0.4316, allocations: 84.27 kB / 0.5127 GB, free: 34.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.4317, allocations: 0 / 0.5127 GB, free: 34.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-05/0.4317, allocations: 12.53 kB / 0.5128 GB, free: 34.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.336e-05/0.4318, allocations: 310.8 kB / 0.513 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.01e-05/0.4318, allocations: 2.562 kB / 0.5131 GB, free: 33.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.121e-06/0.4318, allocations: 4 kB / 0.5131 GB, free: 33.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.016e-05/0.4318, allocations: 62.77 kB / 0.5131 GB, free: 33.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4318, allocations: 4.062 kB / 0.5131 GB, free: 33.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.391e-05/0.4319, allocations: 66.89 kB / 0.5132 GB, free: 33.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.4319, allocations: 37.36 kB / 0.5132 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4319, allocations: 0 / 0.5132 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.432, allocations: 0 / 0.5132 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.432, allocations: 0 / 0.5132 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.432, allocations: 0 / 0.5132 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.954e-05/0.432, allocations: 12.34 kB / 0.5132 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.432, allocations: 0 / 0.5132 GB, free: 33.54 MB / 378.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 6.337e-05/0.4321, allocations: 138.5 kB / 0.5134 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.367e-06/0.4321, allocations: 3.938 kB / 0.5134 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.014e-05/0.4321, allocations: 10.72 kB / 0.5134 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.4321, allocations: 0 / 0.5134 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.4321, allocations: 3.625 kB / 0.5134 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.4321, allocations: 3.984 kB / 0.5134 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.04e-05/0.4322, allocations: 145 kB / 0.5135 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.4322, allocations: 4 kB / 0.5135 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.4322, allocations: 0 / 0.5135 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.4322, allocations: 3.938 kB / 0.5135 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.4322, allocations: 11.88 kB / 0.5135 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.4322, allocations: 0 / 0.5135 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.4323, allocations: 0 / 0.5135 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002312/0.4325, allocations: 0.6382 MB / 0.5142 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.972e-05/0.4325, allocations: 81.05 kB / 0.5142 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.4325, allocations: 2.812 kB / 0.5142 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.908e-06/0.4326, allocations: 7.359 kB / 0.5143 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.17e-05/0.4326, allocations: 0 / 0.5143 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.4326, allocations: 0 / 0.5143 GB, free: 32.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.479e-05/0.4326, allocations: 82.19 kB / 0.5143 GB, free: 32.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4326, allocations: 0 / 0.5143 GB, free: 32.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005245/0.4331, allocations: 145.8 kB / 0.5145 GB, free: 32.26 MB / 378.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.0006813/0.4338, allocations: 367.3 kB / 0.5148 GB, free: 32.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.906e-05/0.4339, allocations: 64.77 kB / 0.5149 GB, free: 32.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4339, allocations: 0 / 0.5149 GB, free: 32.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.241e-05/0.434, allocations: 54.19 kB / 0.5149 GB, free: 31.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.4341, allocations: 8.125 kB / 0.5149 GB, free: 31.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000199/0.4343, allocations: 184.9 kB / 0.5151 GB, free: 31.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001207/0.4344, allocations: 0.6731 MB / 0.5158 GB, free: 31.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.531e-06/0.4344, allocations: 2.812 kB / 0.5158 GB, free: 31.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.057e-06/0.4345, allocations: 7.438 kB / 0.5158 GB, free: 31.04 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4345, allocations: 0 / 0.5158 GB, free: 31.04 MB / 378.7 MB Notification: Performance of Templates: time 0.007538/0.442, allocations: 4.287 MB / 0.52 GB, free: 30.59 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches