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.001132/0.001132, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001562/0.002695, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0011/0.0011, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001566/0.002666, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.031/1.031, allocations: 177.5 MB / 190 MB, free: 4.781 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1037/1.135, allocations: 53.87 MB / 243.9 MB, free: 14.84 MB / 250.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.292/0.292, allocations: 34.89 MB / 279.6 MB, free: 14.89 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02632/0.3183, allocations: 13.24 MB / 292.8 MB, free: 6.371 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.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 1.633e-06/1.633e-06, allocations: 0 / 294.1 MB, free: 5.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.038e-05/2.201e-05, allocations: 2.312 kB / 294.1 MB, free: 5.113 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001719/0.001741, allocations: 0.5357 MB / 294.6 MB, free: 4.582 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003463/0.005205, allocations: 2.374 MB / 297 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.602e-05/0.005221, allocations: 0 / 297 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.011e-06/0.005227, allocations: 0 / 297 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.635e-06/0.005229, allocations: 4 kB / 297 MB, free: 2.188 MB / 282.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.00288/0.00811, allocations: 1.077 MB / 298 MB, free: 1.105 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.663e-05/0.008176, allocations: 4 kB / 298.1 MB, free: 1.102 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.094e-05/0.008217, allocations: 0 / 298.1 MB, free: 1.102 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.372e-05/0.008261, allocations: 7.984 kB / 298.1 MB, free: 1.094 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.399e-05/0.008295, allocations: 7.922 kB / 298.1 MB, free: 1.086 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.216e-06/0.008303, allocations: 0 / 298.1 MB, free: 1.086 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001893/0.0102, allocations: 1.046 MB / 299.1 MB, free: 40 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.811e-05/0.01021, allocations: 4 kB / 299.1 MB, free: 36 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.647e-05/0.01023, allocations: 4 kB / 299.1 MB, free: 32 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007436/0.01097, allocations: 450.9 kB / 299.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.635e-05/0.01099, allocations: 4 kB / 299.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.01099, allocations: 0 / 299.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.011, allocations: 0 / 299.6 MB, free: 15.59 MB / 298.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.0004758/0.01148, allocations: 409.4 kB / 300 MB, free: 15.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.01152, allocations: 15.44 kB / 300 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.951e-05/0.01156, allocations: 0.9375 kB / 300 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.92e-05/0.01164, allocations: 109.8 kB / 300.1 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.01165, allocations: 384 / 300.1 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.01167, allocations: 8.375 kB / 300.1 MB, free: 15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.893e-05/0.01174, allocations: 55.95 kB / 300.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.01175, allocations: 4.188 kB / 300.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.342e-06/0.01176, allocations: 4.375 kB / 300.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.01177, allocations: 3.938 kB / 300.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.867e-05/0.01178, allocations: 29.69 kB / 300.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.657e-05/0.01187, allocations: 57.05 kB / 300.2 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.494e-05/0.01193, allocations: 52.19 kB / 300.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.42e-05/0.01195, allocations: 38.55 kB / 300.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.15e-06/0.01196, allocations: 3.984 kB / 300.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.012, allocations: 60.33 kB / 300.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.011e-06/0.012, allocations: 0 / 300.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001868/0.01219, allocations: 114.8 kB / 300.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.655e-05/0.01227, allocations: 162.2 kB / 300.7 MB, free: 14.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.058e-05/0.01232, allocations: 89.86 kB / 300.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.01233, allocations: 25.7 kB / 300.8 MB, free: 14.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.7e-05/0.01237, allocations: 80.14 kB / 300.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.111e-05/0.0124, allocations: 0.6875 kB / 300.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.01243, allocations: 13.72 kB / 300.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.01255, allocations: 314.8 kB / 301.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.645e-05/0.01258, allocations: 33.7 kB / 301.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.778e-05/0.0126, allocations: 29.69 kB / 301.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.466e-05/0.01265, allocations: 64.45 kB / 301.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.01265, allocations: 0 / 301.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.39e-05/0.01274, allocations: 93.03 kB / 301.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.359e-05/0.01278, allocations: 29.7 kB / 301.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.01279, allocations: 0 / 301.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.0128, allocations: 0 / 301.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.264e-06/0.0128, allocations: 0 / 301.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.01281, allocations: 0 / 301.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.203e-05/0.01283, allocations: 4 kB / 301.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.01284, allocations: 3.938 kB / 301.4 MB, free: 13.45 MB / 298.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.172e-05/0.01292, allocations: 139.6 kB / 301.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-06/0.01293, allocations: 4 kB / 301.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.141e-05/0.01294, allocations: 6.984 kB / 301.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.01295, allocations: 0 / 301.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-06/0.01295, allocations: 0 / 301.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.01295, allocations: 0 / 301.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.265e-05/0.01301, allocations: 65.84 kB / 301.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.01302, allocations: 0 / 301.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.01302, allocations: 0 / 301.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.42e-06/0.01302, allocations: 3.938 kB / 301.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.01302, allocations: 4 kB / 301.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.419e-06/0.01303, allocations: 7.938 kB / 301.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.01303, allocations: 0 / 301.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01303, allocations: 0 / 301.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.759e-05/0.01313, allocations: 120.4 kB / 301.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.01314, allocations: 8 kB / 301.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.568e-06/0.01315, allocations: 0 / 301.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.071e-05/0.01316, allocations: 3.984 kB / 301.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.01317, allocations: 0 / 301.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.039e-05/0.01318, allocations: 4.859 kB / 301.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01318, allocations: 0 / 301.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004743/0.01365, allocations: 155.6 kB / 301.9 MB, free: 12.87 MB / 298.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.0008345/0.01449, allocations: 422.4 kB / 302.4 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001179/0.0146, allocations: 123.7 kB / 302.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.01461, allocations: 0 / 302.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.577e-05/0.01465, allocations: 85.97 kB / 302.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.39e-05/0.01472, allocations: 18.05 kB / 302.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001865/0.0149, allocations: 117.2 kB / 302.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.444e-05/0.01494, allocations: 51.36 kB / 302.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.7e-06/0.01494, allocations: 4 kB / 302.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.01499, allocations: 55.55 kB / 302.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01499, allocations: 4 kB / 302.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of Templates: time 0.007626/0.02261, allocations: 6.23 MB / 309 MB, free: 5.684 MB / 298.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 -ignoreHideResult -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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9718805253505707]