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.001473/0.001473, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001789/0.001789, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2085/0.2085, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 75.88 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4039, allocations: 62.43 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00167/0.4057, allocations: 496.7 kB / 0.5314 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002477/0.4081, allocations: 1.646 MB / 0.5331 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.713e-05/0.4082, allocations: 1.781 kB / 0.5331 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.634e-05/0.4082, allocations: 0 / 0.5331 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.113e-06/0.4082, allocations: 0 / 0.5331 GB, free: 11.92 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.0006961/0.4089, allocations: 159.4 kB / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.067e-05/0.409, allocations: 6.75 kB / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.715e-05/0.4091, allocations: 0 / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.313e-05/0.4091, allocations: 5.359 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.834e-05/0.4091, allocations: 5.312 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.4091, allocations: 0 / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004392/0.4096, allocations: 121.8 kB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.4096, allocations: 5.359 kB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.4096, allocations: 0 / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.4098, allocations: 37.83 kB / 0.5334 GB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4098, allocations: 0 / 0.5334 GB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4098, allocations: 0 / 0.5334 GB, free: 11.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.4098, allocations: 1.375 kB / 0.5334 GB, free: 11.73 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.0004058/0.4102, allocations: 348.6 kB / 0.5337 GB, free: 11.35 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.4103, allocations: 9.625 kB / 0.5337 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.148e-05/0.4103, allocations: 2.312 kB / 0.5337 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.4105, allocations: 164.4 kB / 0.5339 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.4105, allocations: 384 / 0.5339 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.4105, allocations: 5.75 kB / 0.5339 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.4106, allocations: 40.64 kB / 0.5339 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.4106, allocations: 3.938 kB / 0.5339 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.4106, allocations: 0 / 0.5339 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.4107, allocations: 1.375 kB / 0.5339 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.071e-05/0.4107, allocations: 1.375 kB / 0.5339 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001549/0.4108, allocations: 151 kB / 0.5341 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.64e-05/0.4109, allocations: 15.95 kB / 0.5341 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.479e-05/0.4109, allocations: 10.23 kB / 0.5341 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.718e-06/0.4109, allocations: 0 / 0.5341 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.411, allocations: 65.52 kB / 0.5342 GB, free: 10.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.437e-06/0.411, allocations: 3.984 kB / 0.5342 GB, free: 10.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001885/0.4112, allocations: 67.64 kB / 0.5342 GB, free: 10.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.4112, allocations: 78.48 kB / 0.5343 GB, free: 10.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.439e-05/0.4113, allocations: 93.81 kB / 0.5344 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.4113, allocations: 29.83 kB / 0.5344 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.427e-05/0.4114, allocations: 80.14 kB / 0.5345 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.317e-05/0.4114, allocations: 1.375 kB / 0.5345 GB, free: 10.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.4114, allocations: 11.09 kB / 0.5345 GB, free: 10.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4115, allocations: 312.2 kB / 0.5348 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.247e-05/0.4116, allocations: 1.375 kB / 0.5348 GB, free: 10.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.069e-05/0.4116, allocations: 9.359 kB / 0.5348 GB, free: 10.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.683e-05/0.4116, allocations: 67.02 kB / 0.5349 GB, free: 9.988 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4116, allocations: 0 / 0.5349 GB, free: 9.988 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.721e-05/0.4117, allocations: 58.28 kB / 0.5349 GB, free: 9.926 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.4118, allocations: 35.14 kB / 0.535 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4118, allocations: 0 / 0.535 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.4118, allocations: 5.359 kB / 0.535 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.4118, allocations: 0 / 0.535 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.4118, allocations: 0 / 0.535 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.803e-05/0.4118, allocations: 5.375 kB / 0.535 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.4119, allocations: 1.375 kB / 0.535 GB, free: 9.883 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.0001143/0.412, allocations: 144.9 kB / 0.5351 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.412, allocations: 5.312 kB / 0.5351 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.678e-06/0.412, allocations: 3.125 kB / 0.5351 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.412, allocations: 1.375 kB / 0.5351 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.412, allocations: 0 / 0.5351 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.412, allocations: 3.938 kB / 0.5351 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000102/0.4121, allocations: 147 kB / 0.5353 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.4122, allocations: 1.375 kB / 0.5353 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.425e-06/0.4122, allocations: 3.938 kB / 0.5353 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.4122, allocations: 7.938 kB / 0.5353 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.4122, allocations: 1.375 kB / 0.5353 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.4122, allocations: 0 / 0.5353 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4122, allocations: 3.938 kB / 0.5353 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001074/0.4123, allocations: 89.83 kB / 0.5354 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.631e-05/0.4124, allocations: 78.48 kB / 0.5355 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.4124, allocations: 5.312 kB / 0.5355 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-06/0.4124, allocations: 0 / 0.5355 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.655e-05/0.4124, allocations: 5.406 kB / 0.5355 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-06/0.4124, allocations: 0 / 0.5355 GB, free: 9.309 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.525e-05/0.4125, allocations: 80.64 kB / 0.5355 GB, free: 9.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4125, allocations: 0 / 0.5355 GB, free: 9.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000237/0.4127, allocations: 20.31 kB / 0.5356 GB, free: 9.223 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.0003021/0.413, allocations: 140 kB / 0.5357 GB, free: 9.113 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001136/0.4131, allocations: 64.84 kB / 0.5358 GB, free: 9.043 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4131, allocations: 0 / 0.5358 GB, free: 9.043 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.925e-05/0.4132, allocations: 58.16 kB / 0.5358 GB, free: 8.977 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.4133, allocations: 2.75 kB / 0.5358 GB, free: 8.977 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001778/0.4135, allocations: 80 kB / 0.5359 GB, free: 8.879 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.4138, allocations: 0.6703 MB / 0.5365 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.082e-06/0.4138, allocations: 0 / 0.5365 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.165e-05/0.4138, allocations: 8.812 kB / 0.5366 GB, free: 8.176 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4138, allocations: 4.125 kB / 0.5366 GB, free: 8.172 MB / 398.1 MB Notification: Performance of Templates: time 0.002725/0.4166, allocations: 0.643 MB / 0.5372 GB, free: 7.832 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