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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007494/0.0007494, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001055/0.001804, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006426/0.0006426, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009116/0.001554, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9092/0.9092, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1963/1.105, allocations: 52.48 MB / 238.5 MB, free: 7.633 MB / 234.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.1436/0.1436, allocations: 32.8 MB / 272 MB, free: 6.312 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02103/0.1646, allocations: 12.54 MB / 284.5 MB, free: 9.719 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.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=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 / 285.8 MB, free: 8.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.071e-05/1.212e-05, allocations: 2.312 kB / 285.8 MB, free: 8.461 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0009218/0.000934, allocations: 0.5324 MB / 286.3 MB, free: 7.934 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002325/0.003259, allocations: 2.258 MB / 288.6 MB, free: 5.656 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.454e-05/0.003274, allocations: 7.938 kB / 288.6 MB, free: 5.648 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.258e-06/0.003278, allocations: 0 / 288.6 MB, free: 5.648 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.31e-07/0.003279, allocations: 0 / 288.6 MB, free: 5.648 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.001663/0.004942, allocations: 1.066 MB / 289.7 MB, free: 4.578 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.6e-05/0.004988, allocations: 0 / 289.7 MB, free: 4.578 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.253e-05/0.00502, allocations: 4 kB / 289.7 MB, free: 4.574 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.057e-05/0.005051, allocations: 8 kB / 289.7 MB, free: 4.566 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.771e-05/0.005078, allocations: 0 / 289.7 MB, free: 4.566 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.315e-06/0.005087, allocations: 3.938 kB / 289.7 MB, free: 4.562 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001169/0.006256, allocations: 0.9988 MB / 290.7 MB, free: 3.562 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.628e-05/0.006272, allocations: 4 kB / 290.7 MB, free: 3.559 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.683e-05/0.006289, allocations: 0 / 290.7 MB, free: 3.559 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004713/0.00676, allocations: 426.9 kB / 291.1 MB, free: 3.141 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.331e-05/0.006773, allocations: 0 / 291.1 MB, free: 3.141 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.006774, allocations: 0 / 291.1 MB, free: 3.141 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.006783, allocations: 4 kB / 291.1 MB, free: 3.137 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.0003911/0.007175, allocations: 385.6 kB / 291.5 MB, free: 2.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.007211, allocations: 12.03 kB / 291.5 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.597e-05/0.007247, allocations: 0.9375 kB / 291.5 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.496e-05/0.007312, allocations: 113.7 kB / 291.6 MB, free: 2.582 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-06/0.007321, allocations: 384 / 291.6 MB, free: 2.582 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-06/0.00733, allocations: 4.375 kB / 291.6 MB, free: 2.578 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.685e-05/0.007407, allocations: 51.97 kB / 291.7 MB, free: 2.516 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.007413, allocations: 4.188 kB / 291.7 MB, free: 2.512 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.751e-06/0.007419, allocations: 384 / 291.7 MB, free: 2.512 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.007424, allocations: 7.938 kB / 291.7 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.833e-05/0.007442, allocations: 29.7 kB / 291.7 MB, free: 2.469 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.735e-05/0.00751, allocations: 61.03 kB / 291.8 MB, free: 2.395 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.515e-05/0.007555, allocations: 52.25 kB / 291.8 MB, free: 2.328 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.653e-05/0.007571, allocations: 30.56 kB / 291.8 MB, free: 2.289 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-06/0.007574, allocations: 0 / 291.8 MB, free: 2.289 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.007611, allocations: 64.33 kB / 291.9 MB, free: 2.211 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.91e-07/0.007612, allocations: 0 / 291.9 MB, free: 2.211 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001252/0.007737, allocations: 110.8 kB / 292 MB, free: 2.078 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.007801, allocations: 166.2 kB / 292.2 MB, free: 1.879 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.511e-05/0.007836, allocations: 93.98 kB / 292.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.007848, allocations: 25.7 kB / 292.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.264e-05/0.00787, allocations: 80.14 kB / 292.4 MB, free: 1.664 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.007891, allocations: 0 / 292.4 MB, free: 1.664 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.449e-05/0.007915, allocations: 13.72 kB / 292.4 MB, free: 1.645 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.302e-05/0.008008, allocations: 318.8 kB / 292.7 MB, free: 1.324 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.609e-05/0.008034, allocations: 29.7 kB / 292.7 MB, free: 1.289 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.204e-05/0.008047, allocations: 25.7 kB / 292.8 MB, free: 1.258 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.462e-05/0.008091, allocations: 60.27 kB / 292.8 MB, free: 1.184 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.008093, allocations: 64 / 292.8 MB, free: 1.184 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.179e-05/0.008144, allocations: 97.03 kB / 292.9 MB, free: 1.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.972e-05/0.008184, allocations: 29.7 kB / 292.9 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.008188, allocations: 3.938 kB / 292.9 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.0082, allocations: 0 / 292.9 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.315e-06/0.008202, allocations: 0 / 292.9 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.008206, allocations: 0 / 292.9 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.802e-05/0.008224, allocations: 4 kB / 292.9 MB, free: 1.027 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.008233, allocations: 3.938 kB / 292.9 MB, free: 1.023 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.431e-05/0.008307, allocations: 147.5 kB / 293.1 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.02e-05/0.008318, allocations: 4.031 kB / 293.1 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.227e-05/0.00833, allocations: 6.953 kB / 293.1 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.61e-07/0.008331, allocations: 0 / 293.1 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.008332, allocations: 0 / 293.1 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.008335, allocations: 0 / 293.1 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.378e-05/0.008389, allocations: 65.84 kB / 293.2 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.008389, allocations: 0 / 293.2 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.00839, allocations: 0 / 293.2 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.17e-06/0.008395, allocations: 7.969 kB / 293.2 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.32e-07/0.008396, allocations: 0 / 293.2 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.797e-06/0.008399, allocations: 4 kB / 293.2 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.0084, allocations: 4 kB / 293.2 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.008401, allocations: 0 / 293.2 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.065e-05/0.008472, allocations: 116.4 kB / 293.3 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.008485, allocations: 4 kB / 293.3 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.328e-06/0.008489, allocations: 0 / 293.3 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.159e-05/0.008501, allocations: 0 / 293.3 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-06/0.008502, allocations: 0 / 293.3 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.725e-06/0.00851, allocations: 4.859 kB / 293.3 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00851, allocations: 0 / 293.3 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002525/0.008763, allocations: 147.5 kB / 293.4 MB, free: 460 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.0005058/0.009269, allocations: 403.9 kB / 293.8 MB, free: 64 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.009378, allocations: 123.7 kB / 294 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.009383, allocations: 4 kB / 294 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.482e-05/0.009418, allocations: 89.91 kB / 294.1 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.177e-05/0.00947, allocations: 11.92 kB / 294.1 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001465/0.009617, allocations: 115.9 kB / 294.2 MB, free: 15.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.899e-05/0.009646, allocations: 55.34 kB / 294.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.601e-06/0.009651, allocations: 3.938 kB / 294.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.164e-05/0.009683, allocations: 51.38 kB / 294.3 MB, free: 15.51 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.009683, allocations: 0 / 294.3 MB, free: 15.51 MB / 298.7 MB Notification: Performance of Templates: time 0.006025/0.01571, allocations: 5.825 MB / 300.1 MB, free: 9.688 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.692086356692016]