Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.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.001596/0.001596, allocations: 75.75 kB / 21.24 MB, free: 396 kB / 14.72 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.002294/0.002294, allocations: 160.2 kB / 24.49 MB, free: 3.453 MB / 14.72 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.446/1.446, allocations: 177.1 MB / 204.7 MB, free: 9 MB / 190.1 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.2108/0.2108, allocations: 34.25 MB / 295.4 MB, free: 14.52 MB / 286.1 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.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002463/0.002463, allocations: 83.86 kB / 443.1 MB, free: 6.551 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.31, allocations: 66.05 MB / 0.4972 GB, free: 29.8 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001485/0.3115, allocations: 0.5024 MB / 0.4977 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.3131, allocations: 1.571 MB / 0.4993 GB, free: 28.41 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.388e-05/0.3132, allocations: 0 / 0.4993 GB, free: 28.41 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.245e-05/0.3132, allocations: 0 / 0.4993 GB, free: 28.41 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.31e-06/0.3132, allocations: 0 / 0.4993 GB, free: 28.41 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005545/0.3137, allocations: 171.5 kB / 0.4994 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.699e-05/0.3138, allocations: 0 / 0.4994 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.612e-05/0.3138, allocations: 3.312 kB / 0.4994 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.395e-05/0.3138, allocations: 0 / 0.4994 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.501e-05/0.3139, allocations: 3.422 kB / 0.4994 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.186e-06/0.3139, allocations: 0 / 0.4994 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003499/0.3142, allocations: 121.6 kB / 0.4996 GB, free: 28.27 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.763e-06/0.3142, allocations: 3.938 kB / 0.4996 GB, free: 28.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.593e-05/0.3143, allocations: 4 kB / 0.4996 GB, free: 28.26 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.3144, allocations: 37.88 kB / 0.4996 GB, free: 28.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3144, allocations: 0 / 0.4996 GB, free: 28.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3144, allocations: 0 / 0.4996 GB, free: 28.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.3144, allocations: 0 / 0.4996 GB, free: 28.25 MB / 446.1 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.0002164/0.3146, allocations: 280.7 kB / 0.4999 GB, free: 27.96 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.3146, allocations: 9.594 kB / 0.4999 GB, free: 27.96 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.3146, allocations: 4.922 kB / 0.4999 GB, free: 27.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.609e-05/0.3147, allocations: 106.5 kB / 0.5 GB, free: 27.83 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.3147, allocations: 384 / 0.5 GB, free: 27.83 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.974e-06/0.3147, allocations: 3.469 kB / 0.5 GB, free: 27.83 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.466e-05/0.3148, allocations: 62.33 kB / 0.5 GB, free: 27.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.3148, allocations: 0 / 0.5 GB, free: 27.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.3148, allocations: 0 / 0.5 GB, free: 27.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.3148, allocations: 0 / 0.5 GB, free: 27.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.119e-05/0.3148, allocations: 32.83 kB / 0.5001 GB, free: 27.73 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.881e-05/0.3149, allocations: 97.33 kB / 0.5002 GB, free: 27.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.037e-05/0.3149, allocations: 46.83 kB / 0.5002 GB, free: 27.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.586e-05/0.315, allocations: 34.56 kB / 0.5002 GB, free: 27.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.315, allocations: 3.281 kB / 0.5003 GB, free: 27.51 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.315, allocations: 56.27 kB / 0.5003 GB, free: 27.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.193e-06/0.315, allocations: 0 / 0.5003 GB, free: 27.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001526/0.3152, allocations: 127.6 kB / 0.5004 GB, free: 27.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.3152, allocations: 77.11 kB / 0.5005 GB, free: 27.21 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.174e-05/0.3152, allocations: 93.81 kB / 0.5006 GB, free: 27.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.56e-06/0.3152, allocations: 25.7 kB / 0.5006 GB, free: 27.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.057e-05/0.3152, allocations: 83.42 kB / 0.5007 GB, free: 26.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.3152, allocations: 3.984 kB / 0.5007 GB, free: 26.99 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.235e-05/0.3153, allocations: 20.94 kB / 0.5007 GB, free: 26.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.613e-05/0.3153, allocations: 314.3 kB / 0.501 GB, free: 26.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.345e-05/0.3153, allocations: 25.7 kB / 0.501 GB, free: 26.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.538e-06/0.3153, allocations: 33.02 kB / 0.5011 GB, free: 26.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.984e-05/0.3154, allocations: 59.61 kB / 0.5011 GB, free: 26.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.3154, allocations: 0 / 0.5011 GB, free: 26.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.304e-05/0.3154, allocations: 98.39 kB / 0.5012 GB, free: 26.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.3154, allocations: 31.98 kB / 0.5013 GB, free: 26.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.3154, allocations: 0 / 0.5013 GB, free: 26.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.3155, allocations: 12.03 kB / 0.5013 GB, free: 26.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.442e-06/0.3155, allocations: 3 kB / 0.5013 GB, free: 26.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.3155, allocations: 0 / 0.5013 GB, free: 26.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.473e-05/0.3155, allocations: 0 / 0.5013 GB, free: 26.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-06/0.3155, allocations: 3.938 kB / 0.5013 GB, free: 26.36 MB / 446.1 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.635e-05/0.3155, allocations: 138.2 kB / 0.5014 GB, free: 26.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-06/0.3155, allocations: 0 / 0.5014 GB, free: 26.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.827e-06/0.3155, allocations: 6.938 kB / 0.5014 GB, free: 26.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.3155, allocations: 3.219 kB / 0.5014 GB, free: 26.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3156, allocations: 0 / 0.5014 GB, free: 26.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3156, allocations: 4 kB / 0.5014 GB, free: 26.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.259e-05/0.3156, allocations: 100.9 kB / 0.5015 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3156, allocations: 2.75 kB / 0.5015 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3156, allocations: 0 / 0.5015 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.3156, allocations: 0 / 0.5015 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.046e-06/0.3156, allocations: 0 / 0.5015 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.3156, allocations: 3.938 kB / 0.5015 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3156, allocations: 3.312 kB / 0.5015 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.737e-05/0.3157, allocations: 116.9 kB / 0.5016 GB, free: 25.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.699e-06/0.3157, allocations: 3.344 kB / 0.5016 GB, free: 25.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.3157, allocations: 0 / 0.5016 GB, free: 25.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.937e-06/0.3157, allocations: 7.969 kB / 0.5016 GB, free: 25.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.59e-05/0.3157, allocations: 3.312 kB / 0.5016 GB, free: 25.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.3157, allocations: 0 / 0.5016 GB, free: 25.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.183e-05/0.3157, allocations: 75.28 kB / 0.5017 GB, free: 25.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3157, allocations: 0 / 0.5017 GB, free: 25.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002057/0.3159, allocations: 20.3 kB / 0.5017 GB, free: 25.86 MB / 446.1 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.0002521/0.3162, allocations: 143.9 kB / 0.5019 GB, free: 25.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.903e-05/0.3163, allocations: 116.4 kB / 0.502 GB, free: 25.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.3163, allocations: 0 / 0.502 GB, free: 25.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.415e-05/0.3163, allocations: 84.08 kB / 0.5021 GB, free: 25.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.3164, allocations: 3.562 kB / 0.5021 GB, free: 25.53 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001567/0.3166, allocations: 118.6 kB / 0.5022 GB, free: 25.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.558e-05/0.3166, allocations: 54.61 kB / 0.5022 GB, free: 25.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.881e-06/0.3166, allocations: 0 / 0.5022 GB, free: 25.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.184e-05/0.3166, allocations: 15.62 kB / 0.5023 GB, free: 25.3 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3166, allocations: 0 / 0.5023 GB, free: 25.3 MB / 446.1 MB Notification: Performance of Templates: time 0.002966/0.3196, allocations: 0.6496 MB / 0.5029 GB, free: 25.21 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.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: 4.777991634095088]