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: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001201/0.001202, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2439/0.2439, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002524/0.002524, allocations: 71.88 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3643, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001696/0.366, allocations: 491.1 kB / 0.531 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002384/0.3684, allocations: 1.648 MB / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.3684, allocations: 0 / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.606e-05/0.3685, allocations: 0 / 0.5326 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.172e-06/0.3685, allocations: 2.625 kB / 0.5326 GB, free: 11.72 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.0006106/0.3691, allocations: 164.8 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.221e-05/0.3691, allocations: 3.984 kB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.967e-05/0.3692, allocations: 0 / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.86e-05/0.3692, allocations: 7.844 kB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.134e-05/0.3692, allocations: 0 / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.655e-06/0.3693, allocations: 4 kB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003821/0.3696, allocations: 125.8 kB / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.795e-06/0.3697, allocations: 0 / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.895e-05/0.3697, allocations: 1.375 kB / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001207/0.3698, allocations: 32.47 kB / 0.5329 GB, free: 11.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3698, allocations: 0 / 0.5329 GB, free: 11.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3698, allocations: 1.375 kB / 0.5329 GB, free: 11.53 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.3698, allocations: 3.938 kB / 0.5329 GB, free: 11.53 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.0003396/0.3702, allocations: 353.3 kB / 0.5332 GB, free: 11.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3702, allocations: 9.344 kB / 0.5333 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.983e-05/0.3703, allocations: 30.75 kB / 0.5333 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.409e-05/0.3703, allocations: 2.094 kB / 0.5333 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.3704, allocations: 168.3 kB / 0.5334 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.3704, allocations: 1.656 kB / 0.5334 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.582e-06/0.3704, allocations: 384 / 0.5334 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.385e-05/0.3705, allocations: 36.39 kB / 0.5335 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.3705, allocations: 0 / 0.5335 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.3706, allocations: 1.625 kB / 0.5335 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.3706, allocations: 7.938 kB / 0.5335 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.642e-05/0.3706, allocations: 1.438 kB / 0.5335 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001378/0.3707, allocations: 151.3 kB / 0.5336 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.565e-05/0.3708, allocations: 15.92 kB / 0.5336 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.622e-05/0.3708, allocations: 6.047 kB / 0.5337 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-06/0.3708, allocations: 0 / 0.5337 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.69e-05/0.3709, allocations: 66.11 kB / 0.5337 GB, free: 10.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.3709, allocations: 0 / 0.5337 GB, free: 10.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001697/0.371, allocations: 71.36 kB / 0.5338 GB, free: 10.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.3711, allocations: 78.36 kB / 0.5339 GB, free: 10.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.195e-05/0.3712, allocations: 89.86 kB / 0.5339 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.3712, allocations: 25.7 kB / 0.534 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.839e-05/0.3712, allocations: 80.14 kB / 0.534 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.3712, allocations: 0.9375 kB / 0.534 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.897e-05/0.3713, allocations: 12.75 kB / 0.5341 GB, free: 10.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.3714, allocations: 318.8 kB / 0.5344 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.059e-05/0.3715, allocations: 1.062 kB / 0.5344 GB, free: 9.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.44e-06/0.3715, allocations: 1.188 kB / 0.5344 GB, free: 9.828 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.192e-05/0.3715, allocations: 67.75 kB / 0.5344 GB, free: 9.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.3715, allocations: 0 / 0.5344 GB, free: 9.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.449e-05/0.3716, allocations: 58 kB / 0.5345 GB, free: 9.688 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.3716, allocations: 35.7 kB / 0.5345 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3717, allocations: 4.094 kB / 0.5345 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.3717, allocations: 1.062 kB / 0.5345 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.905e-06/0.3717, allocations: 3.984 kB / 0.5345 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.3717, allocations: 0 / 0.5345 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.027e-05/0.3717, allocations: 11.06 kB / 0.5345 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.3717, allocations: 1 kB / 0.5345 GB, free: 9.637 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.657e-05/0.3718, allocations: 134.2 kB / 0.5347 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.167e-05/0.3718, allocations: 5.25 kB / 0.5347 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.666e-06/0.3718, allocations: 7.062 kB / 0.5347 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.3719, allocations: 7.938 kB / 0.5347 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.3719, allocations: 1.406 kB / 0.5347 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3719, allocations: 0 / 0.5347 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.668e-05/0.372, allocations: 150.7 kB / 0.5348 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.372, allocations: 0 / 0.5348 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.372, allocations: 1.344 kB / 0.5348 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.372, allocations: 3.938 kB / 0.5348 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.372, allocations: 1.719 kB / 0.5348 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.372, allocations: 0 / 0.5348 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.372, allocations: 3.938 kB / 0.5348 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000105/0.3721, allocations: 93.8 kB / 0.5349 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.628e-05/0.3722, allocations: 81.98 kB / 0.535 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.3722, allocations: 0.7812 kB / 0.535 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.094e-05/0.3722, allocations: 4.781 kB / 0.535 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.328e-05/0.3722, allocations: 5.312 kB / 0.535 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.3722, allocations: 0 / 0.535 GB, free: 9.062 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.837e-05/0.3723, allocations: 76.41 kB / 0.5351 GB, free: 8.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3723, allocations: 4.031 kB / 0.5351 GB, free: 8.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002063/0.3725, allocations: 16.89 kB / 0.5351 GB, free: 8.98 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.0005553/0.373, allocations: 0.6664 MB / 0.5358 GB, free: 8.328 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.3732, allocations: 65.33 kB / 0.5358 GB, free: 8.258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3732, allocations: 0 / 0.5358 GB, free: 8.258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.956e-05/0.3732, allocations: 54 kB / 0.5359 GB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.3733, allocations: 9.578 kB / 0.5359 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003016/0.3736, allocations: 120.2 kB / 0.536 GB, free: 8.047 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.3739, allocations: 0.6739 MB / 0.5367 GB, free: 7.348 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.864e-06/0.3739, allocations: 0 / 0.5367 GB, free: 7.348 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.257e-05/0.3739, allocations: 12.47 kB / 0.5367 GB, free: 7.336 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3739, allocations: 4.125 kB / 0.5367 GB, free: 7.332 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01914/0.3931, allocations: 1.461 MB / 0.5381 GB, free: 6.469 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.507/7.9, allocations: 16.97 kB / 0.5381 GB, free: 6.453 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions.fmu > 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