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.000974/0.000974, allocations: 82.59 kB / 21.42 MB, free: 3.07 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.001148/0.001148, allocations: 164.7 kB / 24.82 MB, free: 8.867 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 1.075/1.075, allocations: 177 MB / 205.1 MB, free: 5.48 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.317/0.317, allocations: 34.86 MB / 296.6 MB, free: 0.5 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.334e-06/2.334e-06, allocations: 0 / 379.2 MB, free: 1.875 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.125e-05/4.358e-05, allocations: 3.859 kB / 379.2 MB, free: 1.871 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.00175/0.001794, allocations: 492.9 kB / 379.7 MB, free: 1.387 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003443/0.005237, allocations: 2.334 MB / 382 MB, free: 15.03 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.976e-05/0.005267, allocations: 0 / 382 MB, free: 15.03 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.445e-05/0.005281, allocations: 0 / 382 MB, free: 15.03 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 8.305e-06/0.00529, allocations: 0 / 382 MB, free: 15.03 MB / 362.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.002625/0.007915, allocations: 1.117 MB / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.94e-05/0.007985, allocations: 4 kB / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.521e-05/0.00803, allocations: 8 kB / 383.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.867e-05/0.008068, allocations: 3.984 kB / 383.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.051e-05/0.008099, allocations: 0 / 383.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.00811, allocations: 0 / 383.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001664/0.009774, allocations: 0.9947 MB / 384.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.073e-05/0.009785, allocations: 0 / 384.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.1e-05/0.009806, allocations: 4 kB / 384.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008767/0.01068, allocations: 0.5339 MB / 384.7 MB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.01069, allocations: 0 / 384.7 MB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.01069, allocations: 4 kB / 384.7 MB, free: 12.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.0107, allocations: 0 / 384.7 MB, free: 12.36 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.0005965/0.01129, allocations: 469.1 kB / 385.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.073e-05/0.01135, allocations: 8.031 kB / 385.1 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.756e-05/0.0114, allocations: 4.875 kB / 385.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.659e-05/0.0115, allocations: 108.6 kB / 385.3 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.01152, allocations: 4.375 kB / 385.3 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.705e-06/0.01153, allocations: 384 / 385.3 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.01164, allocations: 55.97 kB / 385.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.01165, allocations: 4.172 kB / 385.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.01166, allocations: 4.375 kB / 385.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.01167, allocations: 3.938 kB / 385.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.142e-05/0.0117, allocations: 33.69 kB / 385.4 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001102/0.01181, allocations: 93.25 kB / 385.4 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.445e-05/0.01186, allocations: 56.73 kB / 385.5 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.896e-05/0.01188, allocations: 33.39 kB / 385.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.518e-06/0.01189, allocations: 0 / 385.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.388e-05/0.01193, allocations: 63.16 kB / 385.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.01193, allocations: 0 / 385.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001875/0.01212, allocations: 118.9 kB / 385.7 MB, free: 11.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.01216, allocations: 85.05 kB / 385.8 MB, free: 11.04 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.886e-05/0.01221, allocations: 142.2 kB / 385.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.01222, allocations: 25.7 kB / 386 MB, free: 10.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.42e-05/0.01226, allocations: 126.9 kB / 386.1 MB, free: 10.72 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.01227, allocations: 4.344 kB / 386.1 MB, free: 10.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.74e-05/0.0123, allocations: 19.36 kB / 386.1 MB, free: 10.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.01243, allocations: 496.1 kB / 386.6 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.188e-05/0.01245, allocations: 29.7 kB / 386.6 MB, free: 10.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.624e-05/0.01247, allocations: 25.7 kB / 386.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.483e-05/0.01253, allocations: 71.16 kB / 386.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.01253, allocations: 0 / 386.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.274e-05/0.01261, allocations: 96.98 kB / 386.8 MB, free: 9.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/0.01265, allocations: 29.7 kB / 386.8 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.01265, allocations: 0 / 386.8 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.01267, allocations: 4 kB / 386.8 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.503e-06/0.01267, allocations: 3.938 kB / 386.8 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.748e-06/0.01267, allocations: 0 / 386.8 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.74e-05/0.01269, allocations: 3.938 kB / 386.9 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.0127, allocations: 0 / 386.9 MB, free: 9.883 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 9.462e-05/0.01279, allocations: 194.3 kB / 387 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-06/0.0128, allocations: 0 / 387 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.42e-05/0.01281, allocations: 3 kB / 387 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.01281, allocations: 0 / 387 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.01282, allocations: 8 kB / 387.1 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.01282, allocations: 0 / 387.1 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.403e-05/0.01289, allocations: 93.2 kB / 387.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.01289, allocations: 0 / 387.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.71e-07/0.01289, allocations: 0 / 387.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.01289, allocations: 0 / 387.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.01289, allocations: 4 kB / 387.1 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.0129, allocations: 4 kB / 387.2 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.0129, allocations: 3.984 kB / 387.2 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.013, allocations: 131.7 kB / 387.3 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.529e-06/0.01301, allocations: 0 / 387.3 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.01302, allocations: 7.984 kB / 387.3 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.961e-06/0.01303, allocations: 0 / 387.3 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.227e-06/0.01303, allocations: 0 / 387.3 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.01304, allocations: 0 / 387.3 MB, free: 9.367 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.574e-05/0.01307, allocations: 119.2 kB / 387.4 MB, free: 9.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01307, allocations: 0 / 387.4 MB, free: 9.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003931/0.01347, allocations: 163.5 kB / 387.6 MB, free: 9.09 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.001029/0.0145, allocations: 434 kB / 388 MB, free: 8.664 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000128/0.01462, allocations: 118.5 kB / 388.1 MB, free: 8.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01463, allocations: 0 / 388.1 MB, free: 8.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.304e-05/0.01466, allocations: 96.73 kB / 388.2 MB, free: 8.402 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001023/0.01476, allocations: 10.91 kB / 388.2 MB, free: 8.395 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000188/0.01495, allocations: 113.6 kB / 388.3 MB, free: 8.246 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.308e-05/0.01498, allocations: 51.38 kB / 388.4 MB, free: 8.176 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.064e-06/0.01499, allocations: 3.938 kB / 388.4 MB, free: 8.172 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.475e-05/0.01503, allocations: 70.2 kB / 388.4 MB, free: 8.102 MB / 362.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01504, allocations: 4.125 kB / 388.5 MB, free: 8.098 MB / 362.7 MB Notification: Performance of Templates: time 0.008487/0.02352, allocations: 6.093 MB / 394.5 MB, free: 2 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","",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.4956915276125073]