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.001131/0.001131, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001701/0.002832, allocations: 449.7 kB / 10.37 MB, free: 324 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.001195/0.001195, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001532/0.002727, allocations: 463.6 kB / 11.72 MB, free: 2.453 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.049/1.049, allocations: 177.4 MB / 189.9 MB, free: 4.844 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1028/1.152, allocations: 53.86 MB / 243.7 MB, free: 14.92 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.2943/0.2943, allocations: 34.86 MB / 279.3 MB, free: 14.93 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02936/0.3236, allocations: 13.23 MB / 292.6 MB, free: 6.484 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.363e-06/1.363e-06, allocations: 0 / 293.8 MB, free: 5.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.042e-05/3.178e-05, allocations: 3.844 kB / 293.8 MB, free: 5.246 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002044/0.002076, allocations: 0.5175 MB / 294.3 MB, free: 4.727 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003829/0.005904, allocations: 2.389 MB / 296.7 MB, free: 2.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.685e-05/0.005921, allocations: 0 / 296.7 MB, free: 2.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.524e-06/0.005929, allocations: 0 / 296.7 MB, free: 2.32 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.364e-06/0.005931, allocations: 0 / 296.7 MB, free: 2.32 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.002793/0.008724, allocations: 1.078 MB / 297.8 MB, free: 1.238 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.122e-05/0.008815, allocations: 4 kB / 297.8 MB, free: 1.234 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.804e-05/0.008873, allocations: 7.984 kB / 297.8 MB, free: 1.227 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.377e-05/0.008927, allocations: 0 / 297.8 MB, free: 1.227 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.435e-05/0.008971, allocations: 4 kB / 297.8 MB, free: 1.223 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.008984, allocations: 0 / 297.8 MB, free: 1.223 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002277/0.01126, allocations: 1.049 MB / 298.9 MB, free: 176 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.526e-05/0.01128, allocations: 0 / 298.9 MB, free: 176 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.606e-05/0.0113, allocations: 0 / 298.9 MB, free: 176 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009538/0.01226, allocations: 462.9 kB / 299.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.224e-05/0.01229, allocations: 0 / 299.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.01229, allocations: 0 / 299.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.01231, allocations: 4 kB / 299.3 MB, free: 15.71 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.0005937/0.0129, allocations: 413.5 kB / 299.7 MB, free: 15.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.01295, allocations: 8.922 kB / 299.7 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.067e-05/0.01299, allocations: 0.9375 kB / 299.7 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.986e-05/0.01307, allocations: 109.8 kB / 299.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.01308, allocations: 384 / 299.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-06/0.01309, allocations: 384 / 299.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.409e-05/0.01318, allocations: 59.95 kB / 299.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.01319, allocations: 192 / 299.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.844e-06/0.0132, allocations: 4.312 kB / 299.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.01321, allocations: 7.938 kB / 299.9 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.646e-05/0.01323, allocations: 29.7 kB / 299.9 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.579e-05/0.01332, allocations: 53.05 kB / 300 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.494e-05/0.01337, allocations: 48.31 kB / 300 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.29e-05/0.0134, allocations: 38.55 kB / 300.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-06/0.0134, allocations: 0 / 300.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.01344, allocations: 60.33 kB / 300.1 MB, free: 14.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.784e-06/0.01344, allocations: 0 / 300.1 MB, free: 14.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001546/0.0136, allocations: 114.8 kB / 300.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.01364, allocations: 81.22 kB / 300.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.249e-05/0.01369, allocations: 93.86 kB / 300.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.0137, allocations: 25.7 kB / 300.5 MB, free: 14.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.635e-05/0.01372, allocations: 80.14 kB / 300.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.01375, allocations: 0.6875 kB / 300.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.01378, allocations: 17.66 kB / 300.5 MB, free: 14.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.01389, allocations: 318.8 kB / 300.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.784e-05/0.01391, allocations: 29.7 kB / 300.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.572e-05/0.01393, allocations: 25.7 kB / 300.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.384e-05/0.01399, allocations: 76.19 kB / 301 MB, free: 13.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.014, allocations: 4.062 kB / 301 MB, free: 13.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.55e-05/0.01408, allocations: 85.11 kB / 301.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.804e-05/0.01413, allocations: 33.69 kB / 301.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.01414, allocations: 0 / 301.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.01415, allocations: 0 / 301.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.861e-06/0.01416, allocations: 0 / 301.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.397e-06/0.01416, allocations: 4 kB / 301.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.15e-05/0.01418, allocations: 0 / 301.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/0.01419, allocations: 3.938 kB / 301.1 MB, free: 13.67 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.825e-05/0.01428, allocations: 135.5 kB / 301.2 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.779e-06/0.01429, allocations: 4.031 kB / 301.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.235e-05/0.0143, allocations: 3 kB / 301.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.0143, allocations: 3.984 kB / 301.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.01431, allocations: 0 / 301.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.01431, allocations: 3.984 kB / 301.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.937e-05/0.01437, allocations: 65.84 kB / 301.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.01437, allocations: 0 / 301.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-06/0.01437, allocations: 3.938 kB / 301.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-06/0.01438, allocations: 3.938 kB / 301.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.01438, allocations: 4 kB / 301.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-06/0.01439, allocations: 0 / 301.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.01439, allocations: 4 kB / 301.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.01439, allocations: 0 / 301.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001124/0.0145, allocations: 116.5 kB / 301.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.01452, allocations: 4 kB / 301.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-06/0.01453, allocations: 0 / 301.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.07e-05/0.01454, allocations: 0 / 301.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.01454, allocations: 0 / 301.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.05e-05/0.01455, allocations: 8.844 kB / 301.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01455, allocations: 4 kB / 301.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005652/0.01512, allocations: 147.6 kB / 301.6 MB, free: 13.11 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.0008171/0.01594, allocations: 435 kB / 302 MB, free: 12.69 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001175/0.01605, allocations: 123.6 kB / 302.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.01606, allocations: 0 / 302.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.905e-05/0.0161, allocations: 93.94 kB / 302.3 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.722e-05/0.01616, allocations: 15.53 kB / 302.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001949/0.01636, allocations: 109.3 kB / 302.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.404e-05/0.01639, allocations: 55.34 kB / 302.4 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.492e-06/0.0164, allocations: 0 / 302.4 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.389e-05/0.01644, allocations: 59.38 kB / 302.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of SimCode: time 1.373e-06/0.01644, allocations: 0 / 302.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of Templates: time 0.0105/0.02694, allocations: 6.098 MB / 308.6 MB, free: 6.047 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0349105820059776]