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) 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/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 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=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/ModelicaServices trunk/package.mo): time 0.001534/0.001534, allocations: 114.4 kB / 18.45 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001686/0.001686, allocations: 208 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2259/0.2259, allocations: 46.13 MB / 345 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002287/0.002287, allocations: 75.86 kB / 482 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3524, allocations: 62.45 MB / 0.5317 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001491/0.3539, allocations: 484.7 kB / 0.5322 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003651/0.3576, allocations: 2.412 MB / 0.5345 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.778e-05/0.3576, allocations: 0 / 0.5345 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.396e-05/0.3576, allocations: 0 / 0.5345 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.67e-06/0.3576, allocations: 0 / 0.5345 GB, free: 11.31 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.00314/0.3607, allocations: 1.152 MB / 0.5356 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.608e-05/0.3608, allocations: 6.25 kB / 0.5356 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.49e-05/0.3608, allocations: 4.734 kB / 0.5356 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.9e-05/0.3609, allocations: 4.906 kB / 0.5357 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.386e-05/0.3609, allocations: 0.9375 kB / 0.5357 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.911e-06/0.3609, allocations: 0 / 0.5357 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001711/0.3626, allocations: 1.038 MB / 0.5367 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.587e-06/0.3626, allocations: 1.031 kB / 0.5367 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.015e-05/0.3626, allocations: 1.062 kB / 0.5367 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007279/0.3634, allocations: 446.9 kB / 0.5371 GB, free: 9.754 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3634, allocations: 0 / 0.5371 GB, free: 9.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3634, allocations: 0.875 kB / 0.5371 GB, free: 9.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.3634, allocations: 0 / 0.5371 GB, free: 9.754 MB / 398.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.0006337/0.364, allocations: 439.7 kB / 0.5375 GB, free: 9.309 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3641, allocations: 8.656 kB / 0.5375 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.52e-05/0.3641, allocations: 5.906 kB / 0.5375 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.3642, allocations: 164.3 kB / 0.5377 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.3642, allocations: 1.531 kB / 0.5377 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.3643, allocations: 1.562 kB / 0.5377 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.3644, allocations: 40.38 kB / 0.5377 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.3644, allocations: 0 / 0.5377 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.3644, allocations: 4 kB / 0.5377 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.3644, allocations: 5.094 kB / 0.5377 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.081e-05/0.3644, allocations: 0.9688 kB / 0.5377 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002412/0.3646, allocations: 146.7 kB / 0.5379 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.023e-05/0.3647, allocations: 20.7 kB / 0.5379 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.904e-05/0.3647, allocations: 5.953 kB / 0.5379 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.801e-06/0.3647, allocations: 3.938 kB / 0.5379 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.099e-05/0.3648, allocations: 69.5 kB / 0.538 GB, free: 8.742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.253e-06/0.3648, allocations: 1.156 kB / 0.538 GB, free: 8.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002039/0.365, allocations: 62.69 kB / 0.538 GB, free: 8.676 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.549e-05/0.3651, allocations: 82.17 kB / 0.5381 GB, free: 8.578 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.673e-05/0.3651, allocations: 93.81 kB / 0.5382 GB, free: 8.477 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.3651, allocations: 25.7 kB / 0.5382 GB, free: 8.445 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.135e-05/0.3652, allocations: 81.14 kB / 0.5383 GB, free: 8.363 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.3652, allocations: 3.984 kB / 0.5383 GB, free: 8.359 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-05/0.3652, allocations: 20.45 kB / 0.5383 GB, free: 8.336 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3654, allocations: 312.1 kB / 0.5386 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.442e-05/0.3654, allocations: 4.031 kB / 0.5386 GB, free: 8.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.438e-06/0.3654, allocations: 5.125 kB / 0.5386 GB, free: 8.016 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.204e-05/0.3655, allocations: 59.8 kB / 0.5387 GB, free: 7.945 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.3655, allocations: 4 kB / 0.5387 GB, free: 7.941 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.87e-05/0.3656, allocations: 65.92 kB / 0.5388 GB, free: 7.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/0.3656, allocations: 35.92 kB / 0.5388 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.3656, allocations: 0 / 0.5388 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.3657, allocations: 1.844 kB / 0.5388 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.3657, allocations: 0 / 0.5388 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.3657, allocations: 4.094 kB / 0.5388 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.681e-05/0.3657, allocations: 0 / 0.5388 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.3657, allocations: 1.844 kB / 0.5388 GB, free: 7.832 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.0001087/0.3658, allocations: 133.9 kB / 0.5389 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.178e-05/0.3658, allocations: 3.938 kB / 0.5389 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.094e-05/0.3658, allocations: 12.7 kB / 0.5389 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-06/0.3658, allocations: 0 / 0.5389 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3658, allocations: 0 / 0.5389 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3658, allocations: 0 / 0.5389 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.3659, allocations: 147.8 kB / 0.5391 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-06/0.3659, allocations: 0 / 0.5391 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.834e-06/0.366, allocations: 5.344 kB / 0.5391 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.366, allocations: 3.938 kB / 0.5391 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.366, allocations: 7.969 kB / 0.5391 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.366, allocations: 1.406 kB / 0.5391 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.366, allocations: 0 / 0.5391 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001077/0.3661, allocations: 89.28 kB / 0.5392 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.307e-05/0.3661, allocations: 86.12 kB / 0.5393 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.3662, allocations: 4.906 kB / 0.5393 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.127e-06/0.3662, allocations: 1.094 kB / 0.5393 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.162e-05/0.3662, allocations: 0 / 0.5393 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.3662, allocations: 1.188 kB / 0.5393 GB, free: 7.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.218e-05/0.3662, allocations: 75.28 kB / 0.5393 GB, free: 7.188 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3662, allocations: 1.031 kB / 0.5393 GB, free: 7.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004966/0.3667, allocations: 161.3 kB / 0.5395 GB, free: 7.129 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.0008219/0.3675, allocations: 386.2 kB / 0.5399 GB, free: 6.914 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001486/0.3677, allocations: 60.31 kB / 0.5399 GB, free: 6.848 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3677, allocations: 0 / 0.5399 GB, free: 6.848 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.719e-05/0.3677, allocations: 54.5 kB / 0.54 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.3678, allocations: 2.094 kB / 0.54 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001962/0.368, allocations: 84.92 kB / 0.5401 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.3684, allocations: 0.6703 MB / 0.5407 GB, free: 5.988 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.019e-06/0.3684, allocations: 0 / 0.5407 GB, free: 5.988 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.335e-05/0.3684, allocations: 8.625 kB / 0.5407 GB, free: 5.98 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3684, allocations: 0 / 0.5407 GB, free: 5.98 MB / 398.1 MB Notification: Performance of Templates: time 0.009323/0.3777, allocations: 4.609 MB / 0.5452 GB, free: 3.352 MB / 398.1 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 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches