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.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.001113/0.001113, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001438/0.00255, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001419/0.001419, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001556/0.002975, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.082/1.082, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1191/1.201, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2813/0.2813, allocations: 32.8 MB / 276.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02755/0.3089, allocations: 12.53 MB / 289.3 MB, free: 8.672 MB / 282.7 MB " [Timeout remaining time 180] 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.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.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 290.6 MB, free: 7.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.036e-05/2.177e-05, allocations: 2.312 kB / 290.6 MB, free: 7.676 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.00131/0.001331, allocations: 0.5222 MB / 291.1 MB, free: 7.277 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002848/0.004179, allocations: 2.385 MB / 293.5 MB, free: 5.422 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.952e-05/0.004198, allocations: 0 / 293.5 MB, free: 5.422 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.344e-06/0.004206, allocations: 0 / 293.5 MB, free: 5.422 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.804e-06/0.004208, allocations: 0 / 293.5 MB, free: 5.422 MB / 282.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.002198/0.006406, allocations: 1.081 MB / 294.6 MB, free: 4.336 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.255e-05/0.006489, allocations: 0 / 294.6 MB, free: 4.336 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.561e-05/0.006544, allocations: 12.61 kB / 294.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.354e-05/0.006588, allocations: 3.938 kB / 294.6 MB, free: 4.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.55e-05/0.006623, allocations: 0 / 294.6 MB, free: 4.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.959e-06/0.006633, allocations: 0 / 294.6 MB, free: 4.32 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001648/0.008281, allocations: 1.049 MB / 295.6 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.00829, allocations: 0 / 295.6 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.616e-05/0.008306, allocations: 4 kB / 295.6 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005806/0.008887, allocations: 454.9 kB / 296.1 MB, free: 2.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.231e-05/0.008909, allocations: 3.938 kB / 296.1 MB, free: 2.816 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.008911, allocations: 4 kB / 296.1 MB, free: 2.812 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.00893, allocations: 0 / 296.1 MB, free: 2.812 MB / 282.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.0004809/0.009411, allocations: 405.5 kB / 296.5 MB, free: 2.387 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.009453, allocations: 12.03 kB / 296.5 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.641e-05/0.009499, allocations: 0.9375 kB / 296.5 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.253e-05/0.009572, allocations: 101.8 kB / 296.6 MB, free: 2.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.009586, allocations: 4.375 kB / 296.6 MB, free: 2.246 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-06/0.009594, allocations: 384 / 296.6 MB, free: 2.246 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.085e-05/0.009685, allocations: 71.89 kB / 296.7 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.009695, allocations: 192 / 296.7 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.009703, allocations: 384 / 296.7 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.009709, allocations: 7.938 kB / 296.7 MB, free: 2.156 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.003e-05/0.009729, allocations: 25.7 kB / 296.7 MB, free: 2.125 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.553e-05/0.009804, allocations: 57.05 kB / 296.8 MB, free: 2.055 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.578e-05/0.00985, allocations: 44.31 kB / 296.8 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.117e-05/0.009871, allocations: 30.56 kB / 296.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-06/0.009876, allocations: 0 / 296.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.011e-05/0.009926, allocations: 68.25 kB / 296.9 MB, free: 1.875 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.009927, allocations: 0 / 296.9 MB, free: 1.875 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001471/0.01007, allocations: 110.8 kB / 297 MB, free: 1.742 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.01012, allocations: 85.23 kB / 297.1 MB, free: 1.641 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.997e-05/0.01016, allocations: 93.84 kB / 297.2 MB, free: 1.539 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.01017, allocations: 25.7 kB / 297.2 MB, free: 1.508 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.354e-05/0.01019, allocations: 80.14 kB / 297.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.01021, allocations: 3.984 kB / 297.3 MB, free: 1.422 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.115e-05/0.01024, allocations: 13.72 kB / 297.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.629e-05/0.01034, allocations: 314.8 kB / 297.6 MB, free: 1.086 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.91e-05/0.01036, allocations: 29.7 kB / 297.6 MB, free: 1.051 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.546e-05/0.01037, allocations: 25.7 kB / 297.7 MB, free: 1.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.71e-05/0.01043, allocations: 68.19 kB / 297.7 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01043, allocations: 4.062 kB / 297.7 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.345e-05/0.01051, allocations: 85.11 kB / 297.8 MB, free: 0.832 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.289e-05/0.01055, allocations: 37.64 kB / 297.8 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.01056, allocations: 0 / 297.8 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.446e-06/0.01056, allocations: 0 / 297.8 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.41e-06/0.01057, allocations: 0 / 297.8 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-06/0.01057, allocations: 0 / 297.8 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.246e-05/0.01059, allocations: 7.984 kB / 297.9 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.0106, allocations: 3.938 kB / 297.9 MB, free: 0.7773 MB / 282.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 7.633e-05/0.01068, allocations: 135.6 kB / 298 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-06/0.01069, allocations: 4 kB / 298 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.448e-06/0.0107, allocations: 3 kB / 298 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.0107, allocations: 0 / 298 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.0107, allocations: 3.938 kB / 298 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.01071, allocations: 3.984 kB / 298 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.245e-05/0.01077, allocations: 74.53 kB / 298.1 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.01077, allocations: 3.984 kB / 298.1 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.01077, allocations: 0 / 298.1 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.45e-06/0.01078, allocations: 3.938 kB / 298.1 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.01078, allocations: 0 / 298.1 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-06/0.01078, allocations: 8 kB / 298.1 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.01078, allocations: 0 / 298.1 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.01078, allocations: 0 / 298.1 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.377e-05/0.01087, allocations: 116.5 kB / 298.2 MB, free: 376 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.145e-05/0.01088, allocations: 4 kB / 298.2 MB, free: 372 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.582e-06/0.01089, allocations: 0 / 298.2 MB, free: 372 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.935e-06/0.01089, allocations: 0 / 298.2 MB, free: 372 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.0109, allocations: 0 / 298.2 MB, free: 372 kB / 282.7 MB Notification: Performance of sorting global known variables: time 5.871e-06/0.0109, allocations: 4.859 kB / 298.2 MB, free: 364 kB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.0109, allocations: 0 / 298.2 MB, free: 364 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003287/0.01123, allocations: 159.6 kB / 298.4 MB, free: 204 kB / 282.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.0006258/0.01186, allocations: 432 kB / 298.8 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001088/0.01197, allocations: 127.7 kB / 298.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.01197, allocations: 0 / 298.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.629e-05/0.01201, allocations: 85.97 kB / 299 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.745e-05/0.01206, allocations: 11.88 kB / 299 MB, free: 15.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001667/0.01223, allocations: 113.2 kB / 299.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.149e-05/0.01226, allocations: 51.36 kB / 299.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.172e-06/0.01227, allocations: 0 / 299.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.702e-05/0.01232, allocations: 59.36 kB / 299.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01232, allocations: 128 / 299.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of Templates: time 0.008906/0.02122, allocations: 6.098 MB / 305.3 MB, free: 9.145 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.279740479774773]