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.001356/0.001356, allocations: 115.5 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001612/0.001612, allocations: 204.6 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2161/0.2161, allocations: 46.09 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 71.89 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3901/0.3914, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001644/0.393, allocations: 495.4 kB / 0.5314 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.3954, allocations: 1.647 MB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.657e-05/0.3955, allocations: 0 / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.134e-05/0.3955, allocations: 0 / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.112e-06/0.3955, allocations: 0 / 0.5331 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.0006588/0.3962, allocations: 161.4 kB / 0.5332 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.472e-05/0.3962, allocations: 5.453 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.007e-05/0.3963, allocations: 1.125 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.878e-05/0.3963, allocations: 0 / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.451e-05/0.3963, allocations: 5.281 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.496e-06/0.3963, allocations: 0 / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004/0.3967, allocations: 127.4 kB / 0.5333 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.485e-06/0.3968, allocations: 0 / 0.5333 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.592e-05/0.3968, allocations: 5.078 kB / 0.5333 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001087/0.3969, allocations: 32.56 kB / 0.5334 GB, free: 11.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.3969, allocations: 1.125 kB / 0.5334 GB, free: 11.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3969, allocations: 0 / 0.5334 GB, free: 11.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.3969, allocations: 0 / 0.5334 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.0003409/0.3973, allocations: 345 kB / 0.5337 GB, free: 11.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.3973, allocations: 10.34 kB / 0.5337 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.98e-05/0.3974, allocations: 4.938 kB / 0.5337 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001158/0.3975, allocations: 161.5 kB / 0.5339 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.3975, allocations: 8.297 kB / 0.5339 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.3975, allocations: 1.531 kB / 0.5339 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.989e-05/0.3976, allocations: 40.23 kB / 0.5339 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.3977, allocations: 0 / 0.5339 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.3977, allocations: 1.062 kB / 0.5339 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.3977, allocations: 0 / 0.5339 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.217e-05/0.3977, allocations: 5.344 kB / 0.5339 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/0.3979, allocations: 147 kB / 0.5341 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.558e-05/0.3979, allocations: 20.06 kB / 0.5341 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.65e-05/0.3979, allocations: 6.141 kB / 0.5341 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.205e-06/0.398, allocations: 1.531 kB / 0.5341 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.343e-05/0.398, allocations: 61.58 kB / 0.5342 GB, free: 10.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.398, allocations: 3.938 kB / 0.5342 GB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001892/0.3982, allocations: 62.47 kB / 0.5342 GB, free: 10.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.3983, allocations: 86.41 kB / 0.5343 GB, free: 10.65 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.178e-05/0.3984, allocations: 89.86 kB / 0.5344 GB, free: 10.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.3984, allocations: 25.7 kB / 0.5344 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.867e-05/0.3984, allocations: 81.55 kB / 0.5345 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.3984, allocations: 0 / 0.5345 GB, free: 10.44 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.137e-05/0.3985, allocations: 16.19 kB / 0.5345 GB, free: 10.42 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.3986, allocations: 310.8 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-06/0.3986, allocations: 1.344 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.771e-06/0.3986, allocations: 5.344 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.067e-05/0.3987, allocations: 62.83 kB / 0.5349 GB, free: 10.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3987, allocations: 1.25 kB / 0.5349 GB, free: 10.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.783e-05/0.3988, allocations: 66.14 kB / 0.5349 GB, free: 9.961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.3988, allocations: 34.98 kB / 0.535 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3988, allocations: 3.984 kB / 0.535 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3989, allocations: 0.9062 kB / 0.535 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.3989, allocations: 0 / 0.535 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.3989, allocations: 9.281 kB / 0.535 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.788e-05/0.3989, allocations: 0 / 0.535 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.3989, allocations: 1.25 kB / 0.535 GB, free: 9.914 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 0.0001159/0.399, allocations: 141.9 kB / 0.5351 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.096e-05/0.3991, allocations: 5.125 kB / 0.5351 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.063e-05/0.3991, allocations: 3.125 kB / 0.5351 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.3991, allocations: 0 / 0.5351 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.3991, allocations: 1.156 kB / 0.5351 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3991, allocations: 3.938 kB / 0.5351 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.3992, allocations: 154.9 kB / 0.5353 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3992, allocations: 1.094 kB / 0.5353 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.405e-06/0.3992, allocations: 0 / 0.5353 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3993, allocations: 11.81 kB / 0.5353 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.3993, allocations: 1.188 kB / 0.5353 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3993, allocations: 1.219 kB / 0.5353 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3993, allocations: 0 / 0.5353 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001004/0.3994, allocations: 93.62 kB / 0.5354 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.881e-05/0.3994, allocations: 85.14 kB / 0.5355 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.3995, allocations: 5.5 kB / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.558e-06/0.3995, allocations: 1 kB / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.676e-05/0.3995, allocations: 0 / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.3995, allocations: 1.188 kB / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.229e-05/0.3996, allocations: 75.28 kB / 0.5355 GB, free: 9.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3996, allocations: 1.469 kB / 0.5355 GB, free: 9.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.3998, allocations: 20.7 kB / 0.5356 GB, free: 9.254 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.0003475/0.4001, allocations: 146 kB / 0.5357 GB, free: 9.141 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001077/0.4002, allocations: 69.23 kB / 0.5358 GB, free: 9.066 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4003, allocations: 0 / 0.5358 GB, free: 9.066 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.511e-05/0.4003, allocations: 54.78 kB / 0.5358 GB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.4004, allocations: 2.219 kB / 0.5358 GB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001947/0.4006, allocations: 76.19 kB / 0.5359 GB, free: 8.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.4009, allocations: 0.6778 MB / 0.5366 GB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.292e-06/0.4009, allocations: 1.219 kB / 0.5366 GB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.3e-05/0.401, allocations: 8.531 kB / 0.5366 GB, free: 8.199 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.401, allocations: 0 / 0.5366 GB, free: 8.199 MB / 398.1 MB Notification: Performance of Templates: time 0.003032/0.404, allocations: 0.6469 MB / 0.5372 GB, free: 7.855 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches