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.001017/0.001017, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001866/0.001866, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 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.071/1.071, allocations: 177.1 MB / 205 MB, free: 5.277 MB / 186.7 MB " [Timeout remaining time 179] 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.2916/0.2916, allocations: 34.26 MB / 295.7 MB, free: 0.7188 MB / 266.7 MB " [Timeout remaining time 180] 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 2.715e-06/2.715e-06, allocations: 0 / 378 MB, free: 2.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.214e-05/3.486e-05, allocations: 2.312 kB / 378 MB, free: 2.727 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001993/0.002028, allocations: 496.9 kB / 378.5 MB, free: 2.238 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002909/0.004937, allocations: 2.357 MB / 380.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.842e-05/0.004965, allocations: 0 / 380.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.145e-05/0.004986, allocations: 0 / 380.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 8.957e-06/0.004995, allocations: 0 / 380.8 MB, free: 15.86 MB / 362.7 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.002358/0.007354, allocations: 1.125 MB / 382 MB, free: 14.73 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 8.385e-05/0.007437, allocations: 3.984 kB / 382 MB, free: 14.72 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.613e-05/0.007483, allocations: 3.984 kB / 382 MB, free: 14.72 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.04e-05/0.007524, allocations: 0 / 382 MB, free: 14.72 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.373e-05/0.007558, allocations: 4 kB / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.068e-05/0.007568, allocations: 0 / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001537/0.009105, allocations: 0.9909 MB / 383 MB, free: 13.72 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.137e-05/0.009117, allocations: 3.938 kB / 383 MB, free: 13.72 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.428e-05/0.009141, allocations: 0 / 383 MB, free: 13.72 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.01048, allocations: 0.5416 MB / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.01049, allocations: 0 / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01049, allocations: 0 / 383.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.01049, allocations: 0 / 383.5 MB, free: 13.18 MB / 362.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.0004165/0.01091, allocations: 469.2 kB / 384 MB, free: 12.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.01095, allocations: 12.03 kB / 384 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.688e-05/0.011, allocations: 0.9375 kB / 384 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.034e-05/0.01107, allocations: 104.6 kB / 384.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.01109, allocations: 4.375 kB / 384.1 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-06/0.0111, allocations: 384 / 384.1 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.01121, allocations: 59.89 kB / 384.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.01122, allocations: 12.12 kB / 384.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.01123, allocations: 384 / 384.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.01124, allocations: 3.938 kB / 384.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.032e-05/0.01126, allocations: 25.7 kB / 384.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001196/0.01138, allocations: 108.6 kB / 384.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.838e-05/0.01144, allocations: 52.77 kB / 384.3 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.887e-05/0.01147, allocations: 41.47 kB / 384.4 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.571e-06/0.01147, allocations: 0 / 384.4 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.826e-05/0.01152, allocations: 67.02 kB / 384.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.01152, allocations: 0 / 384.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002338/0.01176, allocations: 122.8 kB / 384.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.01181, allocations: 85.05 kB / 384.6 MB, free: 11.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.702e-05/0.01186, allocations: 142.2 kB / 384.8 MB, free: 11.67 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.01187, allocations: 25.7 kB / 384.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.444e-05/0.0119, allocations: 126.9 kB / 384.9 MB, free: 11.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.01193, allocations: 352 / 384.9 MB, free: 11.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.188e-05/0.01196, allocations: 19.38 kB / 385 MB, free: 11.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.01211, allocations: 492.1 kB / 385.4 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.534e-05/0.01214, allocations: 29.7 kB / 385.5 MB, free: 10.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.76e-05/0.01215, allocations: 29.83 kB / 385.5 MB, free: 10.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.764e-05/0.01221, allocations: 75.08 kB / 385.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.01221, allocations: 4 kB / 385.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.074e-05/0.0123, allocations: 89.06 kB / 385.7 MB, free: 10.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.111e-05/0.01233, allocations: 29.7 kB / 385.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.01233, allocations: 3.984 kB / 385.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.01235, allocations: 0 / 385.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.439e-06/0.01235, allocations: 0 / 385.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.01236, allocations: 3.938 kB / 385.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.623e-05/0.01237, allocations: 4 kB / 385.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.01238, allocations: 4.031 kB / 385.7 MB, free: 10.67 MB / 362.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.395e-05/0.01245, allocations: 186.3 kB / 385.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.752e-06/0.01246, allocations: 0 / 385.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.397e-06/0.01247, allocations: 3 kB / 385.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.01247, allocations: 0 / 385.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.01248, allocations: 0 / 385.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.01248, allocations: 7.875 kB / 385.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.293e-05/0.01254, allocations: 116.6 kB / 386 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.01255, allocations: 0 / 386 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.42e-07/0.01255, allocations: 0 / 386 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.01255, allocations: 4 kB / 386 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.01255, allocations: 0 / 386 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.01256, allocations: 0 / 386 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.01256, allocations: 4 kB / 386 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001017/0.01266, allocations: 131.8 kB / 386.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.759e-06/0.01266, allocations: 0 / 386.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.01268, allocations: 0 / 386.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.102e-06/0.01268, allocations: 4 kB / 386.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.206e-05/0.0127, allocations: 0 / 386.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-06/0.0127, allocations: 0 / 386.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.907e-05/0.01273, allocations: 123.1 kB / 386.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01273, allocations: 4.031 kB / 386.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003639/0.01309, allocations: 159.5 kB / 386.4 MB, free: 9.859 MB / 362.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.0006526/0.01374, allocations: 436.9 kB / 386.9 MB, free: 9.434 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001196/0.01386, allocations: 114.5 kB / 387 MB, free: 9.293 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.01386, allocations: 4 kB / 387 MB, free: 9.289 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.386e-05/0.0139, allocations: 92.78 kB / 387.1 MB, free: 9.176 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.111e-05/0.01399, allocations: 4 kB / 387.1 MB, free: 9.172 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002136/0.0142, allocations: 109.7 kB / 387.2 MB, free: 9.027 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.013e-05/0.01423, allocations: 51.36 kB / 387.2 MB, free: 8.957 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.15e-06/0.01424, allocations: 0 / 387.2 MB, free: 8.957 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.529e-05/0.01425, allocations: 16.62 kB / 387.2 MB, free: 8.941 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01425, allocations: 0 / 387.2 MB, free: 8.941 MB / 362.7 MB Notification: Performance of Templates: time 0.009933/0.02419, allocations: 7.489 MB / 394.7 MB, free: 1.449 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] 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","",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.4449010342359543]