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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 107.1 kB / 17.77 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001562/0.001563, allocations: 184.8 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2083/0.2083, allocations: 44.18 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 55.91 kB / 470.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4372/0.4386, allocations: 60.83 MB / 0.5189 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001693/0.4403, allocations: 475.8 kB / 0.5193 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003377/0.4437, allocations: 2.284 MB / 0.5216 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.024e-05/0.4437, allocations: 0 / 0.5216 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.206e-05/0.4438, allocations: 0 / 0.5216 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.446e-06/0.4438, allocations: 0 / 0.5216 GB, free: 1.734 MB / 382.1 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.002644/0.4464, allocations: 1.126 MB / 0.5227 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.258e-05/0.4465, allocations: 10.91 kB / 0.5227 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.191e-05/0.4466, allocations: 2 kB / 0.5227 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.879e-05/0.4466, allocations: 0 / 0.5227 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.77e-05/0.4466, allocations: 1.125 kB / 0.5227 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.532e-06/0.4466, allocations: 0 / 0.5227 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001638/0.4483, allocations: 0.991 MB / 0.5236 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.15e-05/0.4483, allocations: 9.766 kB / 0.5236 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.05e-05/0.4483, allocations: 0 / 0.5236 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006526/0.449, allocations: 418 kB / 0.524 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.449, allocations: 0.7031 kB / 0.524 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.449, allocations: 0 / 0.524 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.449, allocations: 0 / 0.524 GB, free: 0.6094 MB / 382.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.0003899/0.4494, allocations: 425.1 kB / 0.5244 GB, free: 188 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.4495, allocations: 14.17 kB / 0.5245 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.087e-05/0.4495, allocations: 0.9375 kB / 0.5245 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.4497, allocations: 165.2 kB / 0.5246 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.4497, allocations: 10.25 kB / 0.5246 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.4497, allocations: 4.312 kB / 0.5246 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.724e-05/0.4498, allocations: 34.12 kB / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.4499, allocations: 0 / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.4499, allocations: 1.375 kB / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.4499, allocations: 0 / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.003e-05/0.4499, allocations: 2.172 kB / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001892/0.4501, allocations: 144.2 kB / 0.5248 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.979e-05/0.4502, allocations: 28.55 kB / 0.5248 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.714e-05/0.4502, allocations: 10.73 kB / 0.5248 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.136e-06/0.4502, allocations: 1.375 kB / 0.5248 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.4502, allocations: 60.77 kB / 0.5249 GB, free: 15.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.4502, allocations: 1.375 kB / 0.5249 GB, free: 15.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003277/0.4506, allocations: 64.94 kB / 0.525 GB, free: 15.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.4506, allocations: 79.05 kB / 0.525 GB, free: 15.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.138e-05/0.4507, allocations: 97.98 kB / 0.5251 GB, free: 15.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.4507, allocations: 26.27 kB / 0.5252 GB, free: 15.33 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.4508, allocations: 81.52 kB / 0.5252 GB, free: 15.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.4508, allocations: 0 / 0.5252 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.078e-05/0.4508, allocations: 13.36 kB / 0.5253 GB, free: 15.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.451, allocations: 315.3 kB / 0.5256 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.006e-05/0.451, allocations: 1.375 kB / 0.5256 GB, free: 14.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.444e-06/0.451, allocations: 2.078 kB / 0.5256 GB, free: 14.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.438e-05/0.4511, allocations: 67.83 kB / 0.5256 GB, free: 14.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.4511, allocations: 0 / 0.5256 GB, free: 14.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.035e-05/0.4511, allocations: 60.11 kB / 0.5257 GB, free: 14.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/0.4512, allocations: 35.66 kB / 0.5257 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.4512, allocations: 2 kB / 0.5257 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.4512, allocations: 0 / 0.5257 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.4512, allocations: 0 / 0.5257 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.4512, allocations: 2.047 kB / 0.5257 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.19e-05/0.4513, allocations: 0 / 0.5257 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.4513, allocations: 9.312 kB / 0.5257 GB, free: 14.73 MB / 398.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.0001158/0.4514, allocations: 135.7 kB / 0.5259 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.4514, allocations: 3.938 kB / 0.5259 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.809e-05/0.4515, allocations: 9.047 kB / 0.5259 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.4515, allocations: 0 / 0.5259 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4515, allocations: 3.938 kB / 0.5259 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.4515, allocations: 2.078 kB / 0.5259 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001169/0.4516, allocations: 157.1 kB / 0.526 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.4516, allocations: 0 / 0.526 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.4516, allocations: 4 kB / 0.526 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-06/0.4516, allocations: 4.688 kB / 0.526 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.4516, allocations: 2.094 kB / 0.526 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.4517, allocations: 4 kB / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4517, allocations: 0.6094 kB / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.4518, allocations: 89 kB / 0.5261 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.288e-05/0.4518, allocations: 77.62 kB / 0.5262 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.4519, allocations: 5.828 kB / 0.5262 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.938e-06/0.4519, allocations: 4.906 kB / 0.5262 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.607e-05/0.4519, allocations: 5.375 kB / 0.5262 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-06/0.4519, allocations: 1.094 kB / 0.5262 GB, free: 14.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.347e-05/0.4519, allocations: 76.03 kB / 0.5263 GB, free: 14.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.452, allocations: 0 / 0.5263 GB, free: 14.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004737/0.4524, allocations: 138.2 kB / 0.5264 GB, free: 14.05 MB / 398.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.0008721/0.4533, allocations: 366.5 kB / 0.5268 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001179/0.4534, allocations: 58.02 kB / 0.5268 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4535, allocations: 1.156 kB / 0.5268 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.713e-05/0.4535, allocations: 58.5 kB / 0.5269 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.4536, allocations: 5.562 kB / 0.5269 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002153/0.4539, allocations: 77.53 kB / 0.527 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.4541, allocations: 0.6756 MB / 0.5276 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.693e-06/0.4542, allocations: 0 / 0.5276 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.735e-05/0.4542, allocations: 8.812 kB / 0.5276 GB, free: 12.94 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4542, allocations: 3.938 kB / 0.5276 GB, free: 12.94 MB / 398.1 MB Notification: Performance of Templates: time 0.008496/0.4627, allocations: 4.293 MB / 0.5318 GB, free: 10.89 MB / 398.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches