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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001132/0.001132, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001659/0.001659, allocations: 98.2 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3557/0.3557, allocations: 44.83 MB / 392.7 MB, free: 34.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 67.89 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3455, allocations: 62.01 MB / 0.5151 GB, free: 37.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001602/0.3471, allocations: 0.5321 MB / 0.5157 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002909/0.3501, allocations: 2.464 MB / 0.5181 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.186e-05/0.3501, allocations: 0 / 0.5181 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.581e-05/0.3501, allocations: 0 / 0.5181 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.783e-06/0.3501, allocations: 0 / 0.5181 GB, free: 35.75 MB / 378.7 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.002229/0.3524, allocations: 1.065 MB / 0.5191 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.029e-05/0.3524, allocations: 2.875 kB / 0.5191 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.923e-05/0.3525, allocations: 0 / 0.5191 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.913e-05/0.3525, allocations: 3.984 kB / 0.5191 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.941e-05/0.3525, allocations: 0 / 0.5191 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.289e-06/0.3525, allocations: 3.406 kB / 0.5191 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001286/0.3538, allocations: 1.002 MB / 0.5201 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.007e-06/0.3538, allocations: 3.938 kB / 0.5201 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.113e-05/0.3539, allocations: 2.938 kB / 0.5201 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005031/0.3544, allocations: 449.9 kB / 0.5205 GB, free: 34.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3544, allocations: 0 / 0.5205 GB, free: 34.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3544, allocations: 0 / 0.5205 GB, free: 34.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.3544, allocations: 0 / 0.5205 GB, free: 34.63 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.0003509/0.3548, allocations: 436.2 kB / 0.5209 GB, free: 34.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.3548, allocations: 15.41 kB / 0.521 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.857e-05/0.3549, allocations: 0.9375 kB / 0.521 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.03e-05/0.3549, allocations: 160.4 kB / 0.5211 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.3549, allocations: 384 / 0.5211 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.206e-06/0.3549, allocations: 3.281 kB / 0.5211 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.492e-05/0.355, allocations: 37.34 kB / 0.5212 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.355, allocations: 0 / 0.5212 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.3551, allocations: 2.906 kB / 0.5212 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3551, allocations: 0 / 0.5212 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.561e-05/0.3551, allocations: 7.938 kB / 0.5212 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.278e-05/0.3552, allocations: 148.5 kB / 0.5213 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.351e-05/0.3552, allocations: 18 kB / 0.5213 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.17e-05/0.3552, allocations: 7.734 kB / 0.5213 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-06/0.3553, allocations: 0 / 0.5213 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.3553, allocations: 68.14 kB / 0.5214 GB, free: 33.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.3553, allocations: 6.688 kB / 0.5214 GB, free: 33.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001466/0.3555, allocations: 68.25 kB / 0.5215 GB, free: 33.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.3555, allocations: 79.89 kB / 0.5215 GB, free: 33.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.466e-05/0.3555, allocations: 89.86 kB / 0.5216 GB, free: 33.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.662e-06/0.3555, allocations: 25.7 kB / 0.5217 GB, free: 33.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.074e-05/0.3555, allocations: 80.14 kB / 0.5217 GB, free: 33.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.3556, allocations: 0 / 0.5217 GB, free: 33.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.226e-05/0.3556, allocations: 16.5 kB / 0.5217 GB, free: 33.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.277e-05/0.3557, allocations: 310.8 kB / 0.522 GB, free: 32.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.029e-05/0.3557, allocations: 10.23 kB / 0.5221 GB, free: 32.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.43e-06/0.3557, allocations: 0 / 0.5221 GB, free: 32.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.87e-05/0.3557, allocations: 58.89 kB / 0.5221 GB, free: 32.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3557, allocations: 3.938 kB / 0.5221 GB, free: 32.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.02e-05/0.3558, allocations: 67.31 kB / 0.5222 GB, free: 32.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.3558, allocations: 35.39 kB / 0.5222 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3558, allocations: 0 / 0.5222 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.3559, allocations: 0 / 0.5222 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.3559, allocations: 4.094 kB / 0.5222 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.3559, allocations: 0 / 0.5222 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.517e-05/0.3559, allocations: 2.844 kB / 0.5222 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.3559, allocations: 3.984 kB / 0.5222 GB, free: 32.75 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 4.782e-05/0.3559, allocations: 135.2 kB / 0.5224 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-06/0.356, allocations: 7.406 kB / 0.5224 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.432e-06/0.356, allocations: 6.719 kB / 0.5224 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.72e-07/0.356, allocations: 0 / 0.5224 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.356, allocations: 0 / 0.5224 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.356, allocations: 6.844 kB / 0.5224 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.34e-05/0.3561, allocations: 141.7 kB / 0.5225 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3561, allocations: 3.328 kB / 0.5225 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3561, allocations: 0 / 0.5225 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.3561, allocations: 10.67 kB / 0.5225 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.3561, allocations: 0 / 0.5225 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.3561, allocations: 0 / 0.5225 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3561, allocations: 3.938 kB / 0.5225 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001942/0.3563, allocations: 0.6475 MB / 0.5232 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.38e-05/0.3563, allocations: 77.11 kB / 0.5232 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.3563, allocations: 10.69 kB / 0.5232 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/0.3563, allocations: 4 kB / 0.5232 GB, free: 31.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.838e-06/0.3564, allocations: 0 / 0.5232 GB, free: 31.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.3564, allocations: 2.906 kB / 0.5232 GB, free: 31.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.134e-05/0.3564, allocations: 75.28 kB / 0.5233 GB, free: 31.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3564, allocations: 3.938 kB / 0.5233 GB, free: 31.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005005/0.3569, allocations: 171 kB / 0.5235 GB, free: 31.46 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.0005775/0.3575, allocations: 380.6 kB / 0.5238 GB, free: 31.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.386e-05/0.3576, allocations: 60.44 kB / 0.5239 GB, free: 31.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3576, allocations: 2.594 kB / 0.5239 GB, free: 31.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.864e-05/0.3576, allocations: 57.23 kB / 0.524 GB, free: 31.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001103/0.3577, allocations: 2.906 kB / 0.524 GB, free: 31.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000169/0.3579, allocations: 179.1 kB / 0.5241 GB, free: 30.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.491e-05/0.358, allocations: 0.6753 MB / 0.5248 GB, free: 30.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.789e-06/0.358, allocations: 4.125 kB / 0.5248 GB, free: 30.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.433e-06/0.358, allocations: 7.438 kB / 0.5248 GB, free: 30.24 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/0.358, allocations: 0 / 0.5248 GB, free: 30.24 MB / 378.7 MB Notification: Performance of Templates: time 0.006162/0.3642, allocations: 4.608 MB / 0.5293 GB, free: 29.75 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (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) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches