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.001155/0.001155, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 204.6 kB / 18.73 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2188/0.2188, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 71.89 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4365/0.4381, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001746/0.4399, allocations: 0.49 MB / 0.5314 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.4423, allocations: 1.646 MB / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.379e-05/0.4423, allocations: 1.344 kB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.367e-05/0.4423, allocations: 0 / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.203e-06/0.4423, 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.0006988/0.443, allocations: 151.8 kB / 0.5332 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.84e-05/0.4431, allocations: 10.11 kB / 0.5332 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.409e-05/0.4432, allocations: 1.062 kB / 0.5332 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.876e-05/0.4432, allocations: 1.031 kB / 0.5332 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.256e-05/0.4432, allocations: 3.938 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-06/0.4432, allocations: 1 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004105/0.4436, allocations: 122.2 kB / 0.5333 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.075e-06/0.4437, allocations: 0.9375 kB / 0.5333 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.445e-05/0.4437, allocations: 0.7812 kB / 0.5333 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.4438, allocations: 37.83 kB / 0.5334 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.4438, allocations: 4 kB / 0.5334 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4438, allocations: 0 / 0.5334 GB, free: 11.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.4439, allocations: 0 / 0.5334 GB, free: 11.77 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.0003582/0.4442, allocations: 349.5 kB / 0.5337 GB, free: 11.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.4443, 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.4443, allocations: 4.938 kB / 0.5337 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.4444, allocations: 160.4 kB / 0.5339 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.916e-06/0.4444, allocations: 1.438 kB / 0.5339 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.4444, allocations: 5.453 kB / 0.5339 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.4446, allocations: 48.16 kB / 0.5339 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.4446, allocations: 0 / 0.5339 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.4446, allocations: 1.094 kB / 0.5339 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.4446, allocations: 0 / 0.5339 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.805e-05/0.4446, allocations: 1.094 kB / 0.5339 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001405/0.4448, allocations: 142.8 kB / 0.5341 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.632e-05/0.4448, allocations: 24.78 kB / 0.5341 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.972e-05/0.4448, allocations: 9.922 kB / 0.5341 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.445e-06/0.4449, allocations: 1.125 kB / 0.5341 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.184e-05/0.4449, allocations: 61.3 kB / 0.5342 GB, free: 10.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.4449, allocations: 7.875 kB / 0.5342 GB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001832/0.4451, allocations: 59.25 kB / 0.5342 GB, free: 10.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/0.4452, allocations: 82.12 kB / 0.5343 GB, free: 10.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.64e-05/0.4452, allocations: 97.81 kB / 0.5344 GB, free: 10.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.4452, allocations: 25.7 kB / 0.5344 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.966e-05/0.4453, allocations: 85.45 kB / 0.5345 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/0.4453, allocations: 0 / 0.5345 GB, free: 10.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.4454, allocations: 11.97 kB / 0.5345 GB, free: 10.42 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.4455, allocations: 312 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.211e-05/0.4455, allocations: 1.094 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.558e-06/0.4455, allocations: 5.25 kB / 0.5348 GB, free: 10.1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.687e-05/0.4456, allocations: 67.7 kB / 0.5349 GB, free: 10.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.4456, allocations: 4.062 kB / 0.5349 GB, free: 10.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.378e-05/0.4457, allocations: 61.39 kB / 0.5349 GB, free: 9.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.4458, allocations: 35.3 kB / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.4458, allocations: 1.438 kB / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.4458, allocations: 0 / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.302e-06/0.4458, allocations: 0 / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.4458, allocations: 1.406 kB / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.094e-05/0.4458, allocations: 0 / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.4459, allocations: 1.375 kB / 0.535 GB, free: 9.918 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 9.631e-05/0.446, allocations: 144.9 kB / 0.5351 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.269e-05/0.446, allocations: 5.281 kB / 0.5351 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.718e-06/0.446, allocations: 3.125 kB / 0.5351 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.446, allocations: 1.344 kB / 0.5351 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.446, allocations: 0 / 0.5351 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.446, allocations: 3.938 kB / 0.5351 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001169/0.4461, allocations: 152.3 kB / 0.5353 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4462, allocations: 0 / 0.5353 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.475e-06/0.4462, allocations: 0 / 0.5353 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.4462, allocations: 9.094 kB / 0.5353 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.4462, allocations: 4 kB / 0.5353 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.4462, allocations: 1.312 kB / 0.5353 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4462, allocations: 0 / 0.5353 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.901e-05/0.4463, allocations: 89.77 kB / 0.5354 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.198e-05/0.4464, allocations: 77.11 kB / 0.5354 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.4464, allocations: 5.031 kB / 0.5354 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.785e-06/0.4464, allocations: 1.062 kB / 0.5355 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.928e-05/0.4464, allocations: 5.016 kB / 0.5355 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.4464, allocations: 5.188 kB / 0.5355 GB, free: 9.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.625e-05/0.4465, allocations: 75.28 kB / 0.5355 GB, free: 9.266 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4465, allocations: 0 / 0.5355 GB, free: 9.266 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002024/0.4467, allocations: 21.56 kB / 0.5356 GB, free: 9.258 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.000292/0.447, allocations: 137.5 kB / 0.5357 GB, free: 9.148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001022/0.4471, allocations: 69.02 kB / 0.5357 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.4471, allocations: 0 / 0.5357 GB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.095e-05/0.4471, allocations: 54.81 kB / 0.5358 GB, free: 9.012 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.4473, allocations: 2.312 kB / 0.5358 GB, free: 9.012 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001948/0.4475, allocations: 80.05 kB / 0.5359 GB, free: 8.914 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002231/0.4477, allocations: 0.674 MB / 0.5365 GB, free: 8.215 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.871e-06/0.4477, allocations: 0 / 0.5365 GB, free: 8.215 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.161e-05/0.4477, allocations: 8.594 kB / 0.5365 GB, free: 8.207 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4477, allocations: 0 / 0.5365 GB, free: 8.207 MB / 398.1 MB Notification: Performance of Templates: time 0.002831/0.4506, allocations: 0.6532 MB / 0.5372 GB, free: 7.859 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