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.001152/0.001152, allocations: 110.9 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001264, allocations: 209.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 46.09 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 75.89 kB / 481.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3893/0.3907, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001544/0.3922, allocations: 495.7 kB / 0.5314 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.3945, allocations: 1.639 MB / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.405e-05/0.3945, allocations: 4 kB / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.654e-05/0.3946, allocations: 0 / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.666e-06/0.3946, allocations: 1.375 kB / 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.0006549/0.3953, allocations: 164.4 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.116e-05/0.3953, allocations: 1.375 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.981e-05/0.3954, allocations: 5.375 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.809e-05/0.3954, allocations: 7.938 kB / 0.5332 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.196e-05/0.3954, allocations: 5.359 kB / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.745e-06/0.3954, allocations: 0 / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003601/0.3958, allocations: 119.2 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.675e-06/0.3958, allocations: 0 / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.099e-05/0.3958, allocations: 9.359 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.3959, allocations: 32.45 kB / 0.5334 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.396, allocations: 4 kB / 0.5334 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.396, allocations: 0 / 0.5334 GB, free: 11.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.396, allocations: 1.375 kB / 0.5334 GB, free: 11.75 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.000311/0.3963, allocations: 345.5 kB / 0.5337 GB, free: 11.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3963, allocations: 8.25 kB / 0.5337 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.34e-05/0.3964, allocations: 2.312 kB / 0.5337 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.3965, allocations: 164.4 kB / 0.5339 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.3965, allocations: 1.75 kB / 0.5339 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-06/0.3965, allocations: 4.312 kB / 0.5339 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.815e-05/0.3966, allocations: 36.77 kB / 0.5339 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.3966, allocations: 3.938 kB / 0.5339 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.3966, allocations: 1.375 kB / 0.5339 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.3966, allocations: 0 / 0.5339 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.888e-05/0.3967, allocations: 5.312 kB / 0.5339 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001262/0.3968, allocations: 147 kB / 0.5341 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.563e-05/0.3968, allocations: 19.95 kB / 0.5341 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.417e-05/0.3969, allocations: 6.234 kB / 0.5341 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.618e-06/0.3969, allocations: 4 kB / 0.5341 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/0.3969, allocations: 65.58 kB / 0.5342 GB, free: 10.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3969, allocations: 0 / 0.5342 GB, free: 10.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001566/0.3971, allocations: 67.58 kB / 0.5342 GB, free: 10.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.3971, allocations: 82.48 kB / 0.5343 GB, free: 10.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.841e-05/0.3972, allocations: 89.86 kB / 0.5344 GB, free: 10.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.3972, allocations: 25.7 kB / 0.5344 GB, free: 10.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.657e-05/0.3972, allocations: 85.64 kB / 0.5345 GB, free: 10.42 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/0.3973, allocations: 0 / 0.5345 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-05/0.3973, allocations: 12.47 kB / 0.5345 GB, free: 10.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.475e-05/0.3974, allocations: 310.8 kB / 0.5348 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.026e-05/0.3974, allocations: 1.375 kB / 0.5348 GB, free: 10.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.454e-06/0.3974, allocations: 5.359 kB / 0.5348 GB, free: 10.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.284e-05/0.3975, allocations: 63.02 kB / 0.5349 GB, free: 10.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3975, allocations: 0 / 0.5349 GB, free: 10.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.433e-05/0.3975, allocations: 66.28 kB / 0.5349 GB, free: 9.945 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.3976, allocations: 35.14 kB / 0.535 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3976, allocations: 1.375 kB / 0.535 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.3976, allocations: 3.984 kB / 0.535 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.3976, allocations: 0 / 0.535 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.3976, allocations: 1.375 kB / 0.535 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.37e-05/0.3976, allocations: 0 / 0.535 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.3977, allocations: 1.375 kB / 0.535 GB, free: 9.906 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 8.308e-05/0.3977, allocations: 136.9 kB / 0.5351 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-06/0.3978, allocations: 13.31 kB / 0.5351 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.636e-06/0.3978, allocations: 3.125 kB / 0.5351 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3978, allocations: 1.375 kB / 0.5351 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3978, allocations: 3.938 kB / 0.5351 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.3978, allocations: 0 / 0.5351 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.153e-05/0.3979, allocations: 151 kB / 0.5353 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3979, allocations: 1.375 kB / 0.5353 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.3979, allocations: 0 / 0.5353 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3979, allocations: 3.938 kB / 0.5353 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.3979, allocations: 1.375 kB / 0.5353 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3979, allocations: 4 kB / 0.5353 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3979, allocations: 5.312 kB / 0.5353 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.882e-05/0.398, allocations: 92.39 kB / 0.5354 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.71e-05/0.3981, allocations: 78.48 kB / 0.5355 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.3981, allocations: 5.312 kB / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.787e-06/0.3981, allocations: 0 / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.113e-05/0.3981, allocations: 1.375 kB / 0.5355 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-06/0.3981, allocations: 8.016 kB / 0.5355 GB, free: 9.324 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.52e-05/0.3982, allocations: 80.64 kB / 0.5355 GB, free: 9.246 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3982, allocations: 0 / 0.5355 GB, free: 9.246 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.3984, allocations: 21.55 kB / 0.5356 GB, free: 9.242 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.0002775/0.3987, allocations: 147.2 kB / 0.5357 GB, free: 9.125 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.592e-05/0.3988, allocations: 60.09 kB / 0.5358 GB, free: 9.059 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3988, allocations: 4.062 kB / 0.5358 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.817e-05/0.3988, allocations: 54.69 kB / 0.5358 GB, free: 8.992 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.399, allocations: 9.156 kB / 0.5358 GB, free: 8.988 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001618/0.3991, allocations: 76.3 kB / 0.5359 GB, free: 8.895 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.3994, allocations: 0.6702 MB / 0.5366 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.051e-06/0.3994, allocations: 0 / 0.5366 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.048e-05/0.3994, allocations: 8.656 kB / 0.5366 GB, free: 8.191 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3994, allocations: 1.688 kB / 0.5366 GB, free: 8.191 MB / 398.1 MB Notification: Performance of Templates: time 0.002867/0.4023, allocations: 0.6447 MB / 0.5372 GB, free: 7.852 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