Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.002401/0.002401, allocations: 99.53 kB / 20.96 MB, free: 3.449 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.002873/0.002873, allocations: 160.8 kB / 24.27 MB, free: 148 kB / 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 1.605/1.605, allocations: 177 MB / 204.5 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.3848/0.3848, allocations: 34.25 MB / 295.2 MB, free: 0.6445 MB / 266.7 MB " [Timeout remaining time 179] 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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 377.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.179e-05/3.399e-05, allocations: 2.312 kB / 377.2 MB, free: 2.941 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001564/0.001598, allocations: 473.1 kB / 377.6 MB, free: 2.477 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00462/0.006218, allocations: 2.334 MB / 380 MB, free: 124 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.248e-05/0.00625, allocations: 3.938 kB / 380 MB, free: 120 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.471e-05/0.006265, allocations: 0 / 380 MB, free: 120 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.424e-06/0.006272, allocations: 0 / 380 MB, free: 120 kB / 346.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.0033/0.009572, allocations: 1.121 MB / 381.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.541e-05/0.009628, allocations: 3.984 kB / 381.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.855e-05/0.009666, allocations: 3.938 kB / 381.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.876e-05/0.009705, allocations: 4 kB / 381.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.961e-05/0.009734, allocations: 0 / 381.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.009743, allocations: 0 / 381.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001769/0.01151, allocations: 0.9714 MB / 382.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.152e-05/0.01152, allocations: 7.938 kB / 382.1 MB, free: 14 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.871e-05/0.01154, allocations: 0 / 382.1 MB, free: 14 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009174/0.01246, allocations: 0.5377 MB / 382.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.01246, allocations: 0 / 382.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.01246, allocations: 0 / 382.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.01247, allocations: 0 / 382.6 MB, free: 13.46 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.0005698/0.01304, allocations: 469.2 kB / 383.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.01308, allocations: 12.03 kB / 383.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.01312, allocations: 0.9375 kB / 383.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.01323, allocations: 104.6 kB / 383.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.01324, allocations: 4.375 kB / 383.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/0.01325, allocations: 8.312 kB / 383.2 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.01336, allocations: 55.95 kB / 383.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.01337, allocations: 192 / 383.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.01338, allocations: 4.312 kB / 383.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.01339, allocations: 7.938 kB / 383.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.346e-05/0.01342, allocations: 25.7 kB / 383.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000135/0.01356, allocations: 108.6 kB / 383.4 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.977e-05/0.01364, allocations: 52.8 kB / 383.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.732e-05/0.01369, allocations: 45.38 kB / 383.5 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.0137, allocations: 4 kB / 383.5 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.149e-05/0.01376, allocations: 59.09 kB / 383.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.01377, allocations: 0 / 383.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002671/0.01403, allocations: 122.8 kB / 383.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.801e-05/0.0141, allocations: 85.05 kB / 383.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.595e-05/0.01419, allocations: 142.2 kB / 383.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.01421, allocations: 25.7 kB / 383.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.235e-05/0.01427, allocations: 126.9 kB / 384.1 MB, free: 11.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.01429, allocations: 0 / 384.1 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/0.01433, allocations: 23.38 kB / 384.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002555/0.01459, allocations: 492.2 kB / 384.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.927e-05/0.01463, allocations: 33.64 kB / 384.6 MB, free: 11.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.451e-05/0.01465, allocations: 29.7 kB / 384.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.494e-05/0.01472, allocations: 67.08 kB / 384.7 MB, free: 11.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01472, allocations: 0 / 384.7 MB, free: 11.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001007/0.01482, allocations: 89.11 kB / 384.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.01485, allocations: 29.7 kB / 384.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.01486, allocations: 3.984 kB / 384.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.01488, allocations: 0 / 384.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.216e-06/0.01488, allocations: 4.094 kB / 384.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.852e-06/0.01489, allocations: 7.938 kB / 384.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.214e-05/0.0149, allocations: 0 / 384.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.0149, allocations: 0 / 384.8 MB, free: 10.96 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.0001334/0.01504, allocations: 186.2 kB / 385 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.134e-05/0.01505, allocations: 3.953 kB / 385 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.32e-05/0.01506, allocations: 7 kB / 385 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.01506, allocations: 0 / 385 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.01507, allocations: 0 / 385 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.01508, allocations: 11.92 kB / 385 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.0152, allocations: 108.6 kB / 385.1 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.0152, allocations: 7.938 kB / 385.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.316e-06/0.0152, allocations: 4 kB / 385.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.0152, allocations: 0 / 385.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.01521, allocations: 4 kB / 385.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.01521, allocations: 0 / 385.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.01521, allocations: 0 / 385.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001588/0.01537, allocations: 131.8 kB / 385.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.9e-06/0.01537, allocations: 0 / 385.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.01539, allocations: 4 kB / 385.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-06/0.0154, allocations: 0 / 385.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.114e-05/0.01542, allocations: 7.969 kB / 385.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.01542, allocations: 0 / 385.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002318/0.01565, allocations: 123.1 kB / 385.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01565, allocations: 0 / 385.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000523/0.01618, allocations: 159.5 kB / 385.6 MB, free: 10.13 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.0009868/0.01716, allocations: 426.6 kB / 386 MB, free: 9.715 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001668/0.01733, allocations: 118.5 kB / 386.1 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01733, allocations: 0 / 386.1 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.651e-05/0.01741, allocations: 96.78 kB / 386.2 MB, free: 9.453 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001443/0.01755, allocations: 0 / 386.2 MB, free: 9.453 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000246/0.0178, allocations: 109.7 kB / 386.3 MB, free: 9.309 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.908e-05/0.01786, allocations: 59.48 kB / 386.4 MB, free: 9.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.315e-06/0.01787, allocations: 3.984 kB / 386.4 MB, free: 9.227 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.487e-05/0.01788, allocations: 12.44 kB / 386.4 MB, free: 9.215 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01788, allocations: 0 / 386.4 MB, free: 9.215 MB / 362.7 MB Notification: Performance of Templates: time 0.0103/0.02818, allocations: 4.731 MB / 391.1 MB, free: 4.48 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.170851203962229]