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.001353/0.001353, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001479/0.001479, allocations: 204 kB / 23.73 MB, free: 4.379 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.559/1.559, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2574/0.2574, allocations: 46.96 MB / 360.9 MB, free: 4.059 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.002098/0.002098, allocations: 71.89 kB / 0.4966 GB, free: 7.258 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3742, allocations: 66.03 MB / 0.561 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001697/0.3759, allocations: 473.1 kB / 0.5615 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003855/0.3798, allocations: 2.295 MB / 0.5637 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.734e-05/0.3798, allocations: 0 / 0.5637 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.656e-05/0.3798, allocations: 0 / 0.5637 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.222e-06/0.3798, allocations: 0 / 0.5637 GB, free: 1.43 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.002832/0.3827, allocations: 1.093 MB / 0.5648 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.299e-05/0.3827, allocations: 8 kB / 0.5648 GB, free: 336 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.305e-05/0.3828, allocations: 4 kB / 0.5648 GB, free: 332 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.537e-05/0.3828, allocations: 0 / 0.5648 GB, free: 332 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.951e-05/0.3828, allocations: 11.92 kB / 0.5648 GB, free: 320 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.293e-06/0.3828, allocations: 0 / 0.5648 GB, free: 320 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001742/0.3846, allocations: 1.003 MB / 0.5658 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.086e-05/0.3846, allocations: 0 / 0.5658 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.236e-05/0.3846, allocations: 0 / 0.5658 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006996/0.3853, allocations: 437.5 kB / 0.5662 GB, free: 14.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.359e-05/0.3853, allocations: 8 kB / 0.5662 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3853, allocations: 0 / 0.5662 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.3853, allocations: 4 kB / 0.5662 GB, free: 14.88 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.0005446/0.3859, allocations: 359.3 kB / 0.5666 GB, free: 14.49 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3859, allocations: 8.031 kB / 0.5666 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.626e-05/0.3859, allocations: 0.9375 kB / 0.5666 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.3861, allocations: 110.5 kB / 0.5667 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.3861, allocations: 4.375 kB / 0.5667 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.3861, allocations: 4.312 kB / 0.5667 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/0.3862, allocations: 63.7 kB / 0.5668 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3862, allocations: 0 / 0.5668 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.3862, allocations: 0 / 0.5668 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3862, allocations: 7.938 kB / 0.5668 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.158e-05/0.3863, allocations: 25.7 kB / 0.5668 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001783/0.3864, allocations: 101.3 kB / 0.5669 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.19e-05/0.3865, allocations: 44.28 kB / 0.5669 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.024e-05/0.3866, allocations: 46.52 kB / 0.567 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-06/0.3866, allocations: 0 / 0.567 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.081e-05/0.3866, allocations: 56.27 kB / 0.567 GB, free: 13.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.3866, allocations: 0 / 0.567 GB, free: 13.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002408/0.3869, allocations: 118.8 kB / 0.5671 GB, free: 13.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.3869, allocations: 85.22 kB / 0.5672 GB, free: 13.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.429e-05/0.387, allocations: 97.81 kB / 0.5673 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.387, allocations: 25.7 kB / 0.5673 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.989e-05/0.3871, allocations: 84.12 kB / 0.5674 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.3871, allocations: 0 / 0.5674 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.177e-05/0.3871, allocations: 13.72 kB / 0.5674 GB, free: 13.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3873, allocations: 310.8 kB / 0.5677 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.782e-05/0.3873, allocations: 33.64 kB / 0.5678 GB, free: 13.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.022e-05/0.3873, allocations: 29.7 kB / 0.5678 GB, free: 13.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.774e-05/0.3874, allocations: 64.25 kB / 0.5679 GB, free: 12.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3874, allocations: 4.062 kB / 0.5679 GB, free: 12.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.224e-05/0.3875, allocations: 85.11 kB / 0.5679 GB, free: 12.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.484e-05/0.3875, allocations: 33.7 kB / 0.568 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3875, allocations: 0 / 0.568 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.3875, allocations: 3.938 kB / 0.568 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.03e-06/0.3875, allocations: 7.984 kB / 0.568 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.3875, allocations: 0 / 0.568 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.705e-05/0.3875, allocations: 4 kB / 0.568 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.3876, allocations: 0 / 0.568 GB, free: 12.8 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.0001037/0.3877, allocations: 135.5 kB / 0.5681 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.806e-06/0.3877, allocations: 8.031 kB / 0.5681 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.299e-05/0.3877, allocations: 6.938 kB / 0.5681 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.3877, allocations: 0 / 0.5681 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3877, allocations: 0 / 0.5681 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3877, allocations: 0 / 0.5681 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.941e-05/0.3878, allocations: 101.3 kB / 0.5682 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.42e-07/0.3878, allocations: 0 / 0.5682 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.3878, allocations: 0 / 0.5682 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.3878, allocations: 0 / 0.5682 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.3878, allocations: 0 / 0.5682 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.3878, allocations: 3.938 kB / 0.5682 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3878, allocations: 7.938 kB / 0.5682 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001177/0.3879, allocations: 116.5 kB / 0.5684 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.608e-06/0.3879, allocations: 11.94 kB / 0.5684 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.09e-05/0.3879, allocations: 0 / 0.5684 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.087e-05/0.3879, allocations: 3.938 kB / 0.5684 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.3879, allocations: 0 / 0.5684 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.3879, allocations: 0 / 0.5684 GB, free: 12.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.031e-05/0.388, allocations: 83.22 kB / 0.5684 GB, free: 12.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.388, allocations: 0 / 0.5684 GB, free: 12.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000451/0.3884, allocations: 155.5 kB / 0.5686 GB, free: 12.11 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.0007729/0.3892, allocations: 396.1 kB / 0.569 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001534/0.3894, allocations: 118.8 kB / 0.5691 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3894, allocations: 4 kB / 0.5691 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.733e-05/0.3894, allocations: 77.11 kB / 0.5692 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.3896, allocations: 4 kB / 0.5692 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000245/0.3898, allocations: 114.7 kB / 0.5693 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.483e-05/0.3899, allocations: 55.36 kB / 0.5693 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.881e-06/0.3899, allocations: 0 / 0.5693 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.548e-05/0.3899, allocations: 7.438 kB / 0.5693 GB, free: 11.25 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3899, allocations: 0 / 0.5693 GB, free: 11.25 MB / 414.1 MB Notification: Performance of Templates: time 0.009095/0.399, allocations: 4.623 MB / 0.5739 GB, free: 6.629 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.480941186193377]