Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.002514/0.002514, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.00301/0.00301, allocations: 165.3 kB / 24.28 MB, free: 152 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.559/1.559, allocations: 177.1 MB / 204.6 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 178] 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.3611/0.3611, allocations: 32.8 MB / 293.9 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 179] 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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 375.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.295e-05/3.445e-05, allocations: 2.312 kB / 375.2 MB, free: 5.02 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001729/0.001764, allocations: 484.4 kB / 375.7 MB, free: 4.547 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004156/0.00592, allocations: 2.323 MB / 378 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.756e-05/0.005947, allocations: 0 / 378 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.279e-05/0.00596, allocations: 0 / 378 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.721e-06/0.005966, allocations: 0 / 378 MB, free: 2.203 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.003135/0.009101, allocations: 1.128 MB / 379.1 MB, free: 1.07 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.356e-05/0.009144, allocations: 3.938 kB / 379.2 MB, free: 1.066 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.811e-05/0.009183, allocations: 3.984 kB / 379.2 MB, free: 1.062 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.737e-05/0.00921, allocations: 0 / 379.2 MB, free: 1.062 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.351e-05/0.009233, allocations: 4 kB / 379.2 MB, free: 1.059 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.733e-06/0.00924, allocations: 0 / 379.2 MB, free: 1.059 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001874/0.01111, allocations: 0.9753 MB / 380.1 MB, free: 84 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.177e-06/0.01112, allocations: 4 kB / 380.1 MB, free: 80 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.023e-05/0.01114, allocations: 3.938 kB / 380.1 MB, free: 76 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008852/0.01203, allocations: 0.5339 MB / 380.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.01203, allocations: 0 / 380.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.01203, allocations: 0 / 380.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.01204, allocations: 3.938 kB / 380.7 MB, free: 15.54 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.0006449/0.01268, allocations: 469.2 kB / 381.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.01273, allocations: 8.031 kB / 381.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.396e-05/0.01277, allocations: 4.938 kB / 381.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.123e-05/0.01286, allocations: 104.6 kB / 381.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.01288, allocations: 8.312 kB / 381.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.484e-06/0.01288, allocations: 384 / 381.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.01299, allocations: 59.95 kB / 381.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.01299, allocations: 192 / 381.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.764e-06/0.013, allocations: 384 / 381.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.01301, allocations: 3.938 kB / 381.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.524e-05/0.01305, allocations: 29.7 kB / 381.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.01318, allocations: 108.6 kB / 381.5 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.403e-05/0.01327, allocations: 56.73 kB / 381.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.905e-05/0.01331, allocations: 37.38 kB / 381.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.01332, allocations: 8.062 kB / 381.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.673e-05/0.01338, allocations: 59.09 kB / 381.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.01338, allocations: 0 / 381.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002218/0.0136, allocations: 118.8 kB / 381.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.01366, allocations: 85.05 kB / 381.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.826e-05/0.01375, allocations: 142.2 kB / 382 MB, free: 14.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.01377, allocations: 25.7 kB / 382 MB, free: 14.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.413e-05/0.01383, allocations: 126.9 kB / 382.1 MB, free: 13.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.01385, allocations: 0 / 382.1 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.01389, allocations: 19.38 kB / 382.1 MB, free: 13.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002546/0.01414, allocations: 0.4924 MB / 382.6 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.574e-05/0.01418, allocations: 25.7 kB / 382.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.01432, allocations: 29.7 kB / 382.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.738e-05/0.01439, allocations: 67.08 kB / 382.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.01439, allocations: 0 / 382.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001031/0.01449, allocations: 89.11 kB / 382.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.01453, allocations: 29.7 kB / 382.9 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.01454, allocations: 3.984 kB / 382.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.01455, allocations: 3.938 kB / 382.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-06/0.01455, allocations: 96 / 382.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.01456, allocations: 7.938 kB / 382.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.373e-05/0.01457, allocations: 7.938 kB / 382.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.01458, allocations: 0 / 382.9 MB, free: 13.04 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 0.0001441/0.01472, allocations: 186.3 kB / 383.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/0.01474, allocations: 3.953 kB / 383.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.013e-05/0.01475, allocations: 3 kB / 383.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.01475, allocations: 0 / 383.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.01475, allocations: 0 / 383.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.01476, allocations: 3.938 kB / 383.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.01488, allocations: 116.6 kB / 383.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.01488, allocations: 7.984 kB / 383.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.01488, allocations: 0 / 383.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.01488, allocations: 0 / 383.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.7e-06/0.01489, allocations: 0 / 383.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.01489, allocations: 4 kB / 383.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01489, allocations: 4 kB / 383.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/0.01505, allocations: 127.8 kB / 383.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.094e-06/0.01506, allocations: 4 kB / 383.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.01507, allocations: 3.938 kB / 383.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.095e-06/0.01508, allocations: 4 kB / 383.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.423e-05/0.01509, allocations: 4.031 kB / 383.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.0151, allocations: 0 / 383.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.21e-05/0.01516, allocations: 123.1 kB / 383.5 MB, free: 12.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01516, allocations: 0 / 383.5 MB, free: 12.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000484/0.01564, allocations: 159.5 kB / 383.6 MB, free: 12.21 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.0009304/0.01657, allocations: 422.8 kB / 384 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002023/0.01678, allocations: 118.5 kB / 384.1 MB, free: 11.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.01678, allocations: 0 / 384.1 MB, free: 11.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.975e-05/0.01686, allocations: 92.78 kB / 384.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.01699, allocations: 0 / 384.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002372/0.01723, allocations: 113.8 kB / 384.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.716e-05/0.01728, allocations: 67.23 kB / 384.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.488e-06/0.01729, allocations: 3.984 kB / 384.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.479e-05/0.01731, allocations: 8.5 kB / 384.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01731, allocations: 4 kB / 384.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of Templates: time 0.009909/0.02722, allocations: 4.721 MB / 389.1 MB, free: 6.57 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.239374574972317]