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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 115.2 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2027/0.2027, allocations: 46.09 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 80.16 kB / 482 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3074, allocations: 62.43 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001533/0.3089, allocations: 0.4902 MB / 0.5321 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.3112, allocations: 1.645 MB / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.173e-05/0.3112, allocations: 1.594 kB / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.421e-05/0.3112, allocations: 0 / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.45e-06/0.3113, allocations: 0 / 0.5337 GB, free: 11.95 MB / 398.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.0006653/0.3119, allocations: 160.3 kB / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.15e-05/0.312, allocations: 1.844 kB / 0.5339 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.54e-05/0.312, allocations: 3.984 kB / 0.5339 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.796e-05/0.3121, allocations: 9.828 kB / 0.5339 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.861e-05/0.3121, allocations: 0 / 0.5339 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.993e-06/0.3121, allocations: 4 kB / 0.5339 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00035/0.3125, allocations: 115.1 kB / 0.534 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.686e-06/0.3125, allocations: 3.984 kB / 0.534 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.578e-05/0.3125, allocations: 1.375 kB / 0.534 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.3126, allocations: 32.45 kB / 0.534 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3126, allocations: 5.375 kB / 0.534 GB, free: 11.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3126, allocations: 0 / 0.534 GB, free: 11.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.3126, allocations: 0 / 0.534 GB, free: 11.76 MB / 398.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.0003135/0.313, allocations: 353.4 kB / 0.5344 GB, free: 11.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.313, allocations: 9.625 kB / 0.5344 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.173e-05/0.313, allocations: 0.9375 kB / 0.5344 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.3131, allocations: 161.8 kB / 0.5345 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.3132, allocations: 4.312 kB / 0.5345 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-06/0.3132, allocations: 1.75 kB / 0.5346 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.665e-05/0.3133, allocations: 31.39 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3133, allocations: 9.297 kB / 0.5346 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.627e-06/0.3133, allocations: 0 / 0.5346 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.3133, allocations: 4 kB / 0.5346 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.746e-05/0.3133, allocations: 1.375 kB / 0.5346 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001239/0.3134, allocations: 147.1 kB / 0.5347 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.691e-05/0.3135, allocations: 21.27 kB / 0.5348 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.339e-05/0.3135, allocations: 6.234 kB / 0.5348 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.84e-06/0.3135, allocations: 3.984 kB / 0.5348 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/0.3136, allocations: 65.56 kB / 0.5348 GB, free: 10.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3136, allocations: 4 kB / 0.5348 GB, free: 10.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001473/0.3137, allocations: 62.28 kB / 0.5349 GB, free: 10.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.3138, allocations: 82.42 kB / 0.535 GB, free: 10.65 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.508e-05/0.3138, allocations: 89.86 kB / 0.5351 GB, free: 10.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.192e-05/0.3138, allocations: 27.08 kB / 0.5351 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.024e-05/0.3139, allocations: 80.14 kB / 0.5352 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.683e-05/0.3139, allocations: 0 / 0.5352 GB, free: 10.44 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.722e-05/0.3139, allocations: 20.45 kB / 0.5352 GB, free: 10.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.481e-05/0.314, allocations: 316.3 kB / 0.5355 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.408e-06/0.3141, allocations: 0 / 0.5355 GB, free: 10.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.5e-06/0.3141, allocations: 1.375 kB / 0.5355 GB, free: 10.1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.09e-05/0.3141, allocations: 59.02 kB / 0.5355 GB, free: 10.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.3141, allocations: 1.375 kB / 0.5355 GB, free: 10.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.08e-05/0.3142, allocations: 66.27 kB / 0.5356 GB, free: 9.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.3142, allocations: 39.08 kB / 0.5356 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.3142, allocations: 0 / 0.5356 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.3143, allocations: 8.094 kB / 0.5356 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.3143, allocations: 1.375 kB / 0.5356 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.3143, allocations: 0 / 0.5356 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.464e-05/0.3143, allocations: 0 / 0.5356 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.3143, allocations: 1.375 kB / 0.5356 GB, free: 9.91 MB / 398.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 6.877e-05/0.3144, allocations: 138.2 kB / 0.5358 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.198e-06/0.3144, allocations: 3.938 kB / 0.5358 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.028e-05/0.3144, allocations: 8.484 kB / 0.5358 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.3144, allocations: 3.938 kB / 0.5358 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.3144, allocations: 4 kB / 0.5358 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.3144, allocations: 1.375 kB / 0.5358 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.405e-05/0.3145, allocations: 147 kB / 0.5359 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3145, allocations: 0 / 0.5359 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3145, allocations: 0 / 0.5359 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3145, allocations: 5.312 kB / 0.5359 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.3145, allocations: 0 / 0.5359 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3146, allocations: 5.359 kB / 0.536 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3146, allocations: 3.938 kB / 0.536 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.254e-05/0.3147, allocations: 93.78 kB / 0.536 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.91e-05/0.3147, allocations: 81.09 kB / 0.5361 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.3147, allocations: 9.312 kB / 0.5361 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.438e-06/0.3147, allocations: 1.375 kB / 0.5361 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.867e-06/0.3147, allocations: 0 / 0.5361 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.3148, allocations: 1.375 kB / 0.5361 GB, free: 9.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.21e-05/0.3148, allocations: 75.28 kB / 0.5362 GB, free: 9.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3148, allocations: 0 / 0.5362 GB, free: 9.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002087/0.315, allocations: 25.58 kB / 0.5362 GB, free: 9.25 MB / 398.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.0002794/0.3153, allocations: 141.1 kB / 0.5364 GB, free: 9.141 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.534e-05/0.3154, allocations: 59.53 kB / 0.5364 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3154, allocations: 1.375 kB / 0.5364 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.724e-05/0.3154, allocations: 58.14 kB / 0.5365 GB, free: 9.008 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.3156, allocations: 3.688 kB / 0.5365 GB, free: 9.008 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000175/0.3157, allocations: 109.7 kB / 0.5366 GB, free: 8.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.316, allocations: 0.6703 MB / 0.5372 GB, free: 8.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.108e-05/0.316, allocations: 8.812 kB / 0.5372 GB, free: 8.172 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.316, allocations: 0 / 0.5372 GB, free: 8.172 MB / 398.1 MB Notification: Performance of Templates: time 0.001956/0.318, allocations: 0.6767 MB / 0.5379 GB, free: 7.828 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile (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 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches