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.000941/0.000941, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001256/0.001256, allocations: 163.6 kB / 24.99 MB, free: 8.746 MB / 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.08/1.08, allocations: 177.1 MB / 205.3 MB, free: 5.629 MB / 186.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.2789/0.2789, allocations: 32.81 MB / 294.6 MB, free: 1.18 MB / 266.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.763e-06/1.763e-06, allocations: 0 / 375.9 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.813e-05/2.99e-05, allocations: 2.312 kB / 375.9 MB, free: 5.004 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001261/0.001291, allocations: 496.9 kB / 376.4 MB, free: 4.516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002956/0.004246, allocations: 2.35 MB / 378.8 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.502e-05/0.004271, allocations: 0 / 378.8 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.435e-05/0.004286, allocations: 0 / 378.8 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.004292, allocations: 0 / 378.8 MB, free: 2.145 MB / 346.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.002869/0.007161, allocations: 1.113 MB / 379.9 MB, free: 1.027 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 8.209e-05/0.007244, allocations: 4 kB / 379.9 MB, free: 1.023 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.964e-05/0.007293, allocations: 3.984 kB / 379.9 MB, free: 1.02 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.614e-05/0.007329, allocations: 3.938 kB / 379.9 MB, free: 1.016 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.276e-05/0.007362, allocations: 0 / 379.9 MB, free: 1.016 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.007374, allocations: 0 / 379.9 MB, free: 1.016 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001576/0.008951, allocations: 0.987 MB / 380.9 MB, free: 28 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.022e-05/0.008961, allocations: 0 / 380.9 MB, free: 28 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.291e-05/0.008984, allocations: 0 / 380.9 MB, free: 28 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007398/0.009723, allocations: 0.5377 MB / 381.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.009728, allocations: 0 / 381.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.009729, allocations: 0 / 381.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.009735, allocations: 0 / 381.4 MB, free: 15.49 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.000445/0.01018, allocations: 469.2 kB / 381.9 MB, free: 14.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.01023, allocations: 12.02 kB / 381.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.01027, allocations: 0.9375 kB / 381.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.939e-05/0.01034, allocations: 108.6 kB / 382 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.01035, allocations: 4.375 kB / 382 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.596e-06/0.01036, allocations: 384 / 382 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.898e-05/0.01046, allocations: 63.91 kB / 382.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.01046, allocations: 192 / 382.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.01048, allocations: 384 / 382.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.01048, allocations: 3.938 kB / 382.1 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.298e-05/0.01051, allocations: 29.7 kB / 382.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001047/0.01061, allocations: 108.6 kB / 382.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.281e-05/0.01067, allocations: 56.78 kB / 382.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.363e-05/0.01069, allocations: 33.39 kB / 382.3 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.05e-06/0.01069, allocations: 7.938 kB / 382.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.01074, allocations: 67.16 kB / 382.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.01074, allocations: 0 / 382.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002063/0.01095, allocations: 114.8 kB / 382.5 MB, free: 14.24 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.011, allocations: 81.05 kB / 382.6 MB, free: 14.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.993e-05/0.01105, allocations: 146.2 kB / 382.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.01106, allocations: 25.7 kB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.528e-05/0.0111, allocations: 130.9 kB / 382.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.01112, allocations: 352 / 382.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.347e-05/0.01114, allocations: 19.38 kB / 382.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.01128, allocations: 0.4924 MB / 383.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.558e-05/0.01131, allocations: 25.7 kB / 383.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.342e-05/0.01132, allocations: 29.64 kB / 383.4 MB, free: 13.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.221e-05/0.01138, allocations: 63.09 kB / 383.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.01138, allocations: 0 / 383.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.021e-05/0.01146, allocations: 97.05 kB / 383.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.01149, allocations: 29.7 kB / 383.6 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.01149, allocations: 4 kB / 383.6 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.0115, allocations: 0 / 383.6 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.0115, allocations: 96 / 383.6 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.01151, allocations: 7.938 kB / 383.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.242e-05/0.01152, allocations: 0 / 383.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.01153, allocations: 0 / 383.6 MB, free: 12.99 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 8.561e-05/0.01162, allocations: 190.2 kB / 383.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.2e-06/0.01162, allocations: 0 / 383.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.436e-06/0.01163, allocations: 3 kB / 383.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.01163, allocations: 4 kB / 383.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.01164, allocations: 0 / 383.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.01164, allocations: 7.938 kB / 383.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.791e-05/0.01171, allocations: 108.6 kB / 383.9 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.01171, allocations: 4 kB / 383.9 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.01171, allocations: 0 / 383.9 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.01171, allocations: 4 kB / 383.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.01172, allocations: 0 / 383.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.01172, allocations: 3.984 kB / 383.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01172, allocations: 0 / 383.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.518e-05/0.01182, allocations: 123.8 kB / 384.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.534e-06/0.01183, allocations: 11.98 kB / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/0.01184, allocations: 0 / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.709e-06/0.01184, allocations: 0 / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.125e-05/0.01187, allocations: 7.969 kB / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-06/0.01187, allocations: 3.938 kB / 384.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.672e-05/0.0119, allocations: 127.1 kB / 384.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0119, allocations: 0 / 384.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000377/0.01228, allocations: 155.5 kB / 384.4 MB, free: 12.16 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.0006459/0.01293, allocations: 420.7 kB / 384.8 MB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001134/0.01304, allocations: 126.5 kB / 384.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.01304, allocations: 0 / 384.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.832e-05/0.01308, allocations: 88.8 kB / 385 MB, free: 11.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.802e-05/0.01318, allocations: 1.875 kB / 385 MB, free: 11.49 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002255/0.0134, allocations: 117.8 kB / 385.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.316e-05/0.01345, allocations: 59.36 kB / 385.2 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.763e-06/0.01345, allocations: 0 / 385.2 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.741e-05/0.01347, allocations: 8.5 kB / 385.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01347, allocations: 3.938 kB / 385.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of Templates: time 0.00692/0.02039, allocations: 4.725 MB / 389.9 MB, free: 6.527 MB / 362.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 -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.2471561138518155]