Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001272, allocations: 89.91 kB / 22.22 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004229/0.004229, allocations: 160.9 kB / 25.61 MB, free: 8.902 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9744/0.9744, allocations: 177 MB / 205.9 MB, free: 4.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1652/0.1652, allocations: 34.88 MB / 297.4 MB, free: 13.34 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.468e-05/1.648e-05, allocations: 3.156 kB / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0008985/0.000915, allocations: 482.7 kB / 380.4 MB, free: 22.32 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002231/0.003146, allocations: 2.34 MB / 382.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.449e-05/0.00317, allocations: 0 / 382.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.233e-05/0.003183, allocations: 0 / 382.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.715e-06/0.00319, allocations: 0 / 382.8 MB, free: 19.96 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001509/0.0047, allocations: 1.113 MB / 383.9 MB, free: 18.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.394e-05/0.004744, allocations: 0 / 383.9 MB, free: 18.84 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.972e-05/0.004773, allocations: 7.938 kB / 383.9 MB, free: 18.84 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.461e-05/0.004798, allocations: 4 kB / 383.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.19e-05/0.00482, allocations: 4 kB / 383.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.004827, allocations: 0 / 383.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009029/0.00573, allocations: 0.9909 MB / 384.9 MB, free: 17.84 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.005739, allocations: 0 / 384.9 MB, free: 17.84 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.323e-05/0.005752, allocations: 0 / 384.9 MB, free: 17.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004179/0.00617, allocations: 0.5338 MB / 385.4 MB, free: 17.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.006173, allocations: 4 kB / 385.4 MB, free: 17.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.006174, allocations: 11.94 kB / 385.4 MB, free: 17.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.006177, allocations: 0 / 385.4 MB, free: 17.29 MB / 314.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.0002328/0.00641, allocations: 469.2 kB / 385.9 MB, free: 16.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.006441, allocations: 8.031 kB / 385.9 MB, free: 16.78 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.206e-05/0.006463, allocations: 0.9375 kB / 385.9 MB, free: 16.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.298e-05/0.006496, allocations: 104.6 kB / 386 MB, free: 16.65 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.115e-06/0.006505, allocations: 4.375 kB / 386 MB, free: 16.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.861e-06/0.00651, allocations: 4.312 kB / 386 MB, free: 16.64 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.017e-05/0.006561, allocations: 59.97 kB / 386.1 MB, free: 16.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.378e-06/0.006565, allocations: 192 / 386.1 MB, free: 16.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.15e-06/0.00657, allocations: 4.375 kB / 386.1 MB, free: 16.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.006574, allocations: 3.938 kB / 386.1 MB, free: 16.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.14e-05/0.006585, allocations: 29.69 kB / 386.1 MB, free: 16.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.022e-05/0.006636, allocations: 93.27 kB / 386.2 MB, free: 16.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.81e-05/0.006664, allocations: 48.77 kB / 386.3 MB, free: 16.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.133e-05/0.006675, allocations: 41.42 kB / 386.3 MB, free: 16.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.357e-06/0.006678, allocations: 3.984 kB / 386.3 MB, free: 16.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.006698, allocations: 59.09 kB / 386.4 MB, free: 16.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 4.61e-07/0.006698, allocations: 0 / 386.4 MB, free: 16.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 9.739e-05/0.006796, allocations: 118.8 kB / 386.5 MB, free: 16.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/0.006817, allocations: 85.23 kB / 386.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.091e-05/0.006838, allocations: 142.2 kB / 386.7 MB, free: 15.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.897e-06/0.006842, allocations: 25.7 kB / 386.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.098e-05/0.006853, allocations: 126.9 kB / 386.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.202e-05/0.006865, allocations: 0 / 386.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.915e-05/0.006884, allocations: 27.34 kB / 386.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.428e-05/0.006929, allocations: 496.1 kB / 387.4 MB, free: 15.13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.406e-06/0.006937, allocations: 29.64 kB / 387.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.724e-06/0.006945, allocations: 29.7 kB / 387.4 MB, free: 15.06 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.613e-05/0.006971, allocations: 63.16 kB / 387.5 MB, free: 14.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.006973, allocations: 4 kB / 387.5 MB, free: 14.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.804e-05/0.007011, allocations: 93.09 kB / 387.6 MB, free: 14.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.00703, allocations: 29.7 kB / 387.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.007034, allocations: 3.938 kB / 387.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.653e-06/0.00704, allocations: 0 / 387.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.007041, allocations: 0 / 387.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.746e-06/0.007044, allocations: 0 / 387.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.045e-05/0.007054, allocations: 7.938 kB / 387.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-06/0.007059, allocations: 0 / 387.6 MB, free: 14.82 MB / 314.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 4.062e-05/0.007099, allocations: 190.2 kB / 387.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.649e-06/0.007104, allocations: 4.344 kB / 387.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.181e-06/0.00711, allocations: 3 kB / 387.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.007112, allocations: 0 / 387.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.007113, allocations: 0 / 387.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.007115, allocations: 0 / 387.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.625e-05/0.007151, allocations: 101.2 kB / 387.9 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.3e-07/0.007152, allocations: 0 / 387.9 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-07/0.007152, allocations: 0 / 387.9 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-07/0.007153, allocations: 0 / 387.9 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.438e-06/0.007157, allocations: 0 / 387.9 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.007157, allocations: 4 kB / 387.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.007159, allocations: 3.984 kB / 387.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.338e-05/0.007212, allocations: 135.8 kB / 388 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.825e-06/0.007215, allocations: 0 / 388 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.054e-05/0.007226, allocations: 3.984 kB / 388 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.268e-06/0.00723, allocations: 0 / 388 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.117e-05/0.007241, allocations: 7.938 kB / 388.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-06/0.007243, allocations: 0 / 388.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.535e-05/0.007258, allocations: 119.2 kB / 388.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007258, allocations: 0 / 388.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002714/0.007529, allocations: 159.5 kB / 388.3 MB, free: 14.03 MB / 314.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.0004966/0.008026, allocations: 438.1 kB / 388.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.591e-05/0.008102, allocations: 122.5 kB / 388.9 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.008103, allocations: 0 / 388.9 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.757e-05/0.008121, allocations: 92.78 kB / 389 MB, free: 13.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.679e-05/0.008208, allocations: 3.938 kB / 389 MB, free: 13.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001196/0.008327, allocations: 115.5 kB / 389.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.452e-05/0.008342, allocations: 59.23 kB / 389.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.859e-06/0.008347, allocations: 0 / 389.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.307e-05/0.00837, allocations: 74.14 kB / 389.2 MB, free: 13.03 MB / 314.7 MB Notification: Performance of SimCode: time 4.01e-07/0.00837, allocations: 128 / 389.2 MB, free: 13.03 MB / 314.7 MB Notification: Performance of Templates: time 0.005709/0.01408, allocations: 6.09 MB / 395.3 MB, free: 6.941 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.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.2706997678615153]