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.001115/0.001115, allocations: 118.8 kB / 17.79 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.001187/0.001187, allocations: 201.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.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2236/0.2236, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 75.88 kB / 480.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3826, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001526/0.3842, allocations: 0.4886 MB / 0.531 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.3863, allocations: 1.646 MB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.428e-05/0.3864, allocations: 1.594 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.663e-05/0.3864, allocations: 0 / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.192e-06/0.3864, allocations: 0 / 0.5326 GB, free: 11.75 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.0006579/0.3871, allocations: 168.6 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.708e-05/0.3871, allocations: 1.25 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.956e-05/0.3872, allocations: 1.375 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.653e-05/0.3872, allocations: 0 / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.193e-05/0.3872, allocations: 4.906 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.025e-06/0.3872, allocations: 4 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003611/0.3876, allocations: 119.9 kB / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.065e-06/0.3876, allocations: 0 / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.818e-05/0.3877, allocations: 0 / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001153/0.3878, allocations: 37.73 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3878, allocations: 4 kB / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3878, allocations: 0 / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.3878, allocations: 1.344 kB / 0.5329 GB, free: 11.56 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.0003211/0.3881, allocations: 348.9 kB / 0.5332 GB, free: 11.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3882, allocations: 9.125 kB / 0.5332 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.239e-05/0.3882, allocations: 36.62 kB / 0.5333 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.485e-05/0.3883, allocations: 0.9375 kB / 0.5333 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.912e-05/0.3884, allocations: 160.4 kB / 0.5334 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.3884, allocations: 384 / 0.5334 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.743e-06/0.3884, allocations: 7.156 kB / 0.5334 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.613e-05/0.3885, allocations: 35.78 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.3885, allocations: 3.938 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.3885, allocations: 4 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3885, allocations: 0 / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.816e-05/0.3886, allocations: 6.031 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001207/0.3887, allocations: 143.9 kB / 0.5336 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.608e-05/0.3887, allocations: 18.52 kB / 0.5336 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.512e-05/0.3887, allocations: 10.94 kB / 0.5336 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.3888, allocations: 0 / 0.5336 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.447e-05/0.3888, allocations: 70.42 kB / 0.5337 GB, free: 10.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.3888, allocations: 0 / 0.5337 GB, free: 10.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001632/0.389, allocations: 63.31 kB / 0.5338 GB, free: 10.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.389, allocations: 81.09 kB / 0.5339 GB, free: 10.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.632e-05/0.3891, allocations: 89.86 kB / 0.5339 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.3891, allocations: 28.58 kB / 0.534 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.3891, allocations: 84.12 kB / 0.534 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.569e-05/0.3892, allocations: 0 / 0.534 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.923e-05/0.3892, allocations: 21.25 kB / 0.5341 GB, free: 10.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.701e-05/0.3893, allocations: 310.8 kB / 0.5344 GB, free: 9.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.201e-05/0.3893, allocations: 4 kB / 0.5344 GB, free: 9.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.252e-06/0.3893, allocations: 0 / 0.5344 GB, free: 9.855 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.695e-05/0.3894, allocations: 59.39 kB / 0.5344 GB, free: 9.785 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3894, allocations: 1.094 kB / 0.5344 GB, free: 9.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.641e-05/0.3894, allocations: 69.48 kB / 0.5345 GB, free: 9.711 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.35e-05/0.3895, allocations: 36.27 kB / 0.5345 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3895, allocations: 4.094 kB / 0.5345 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.3895, allocations: 0 / 0.5345 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.503e-06/0.3895, allocations: 1.781 kB / 0.5345 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.86e-06/0.3895, allocations: 0 / 0.5345 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.745e-05/0.3896, allocations: 6.156 kB / 0.5345 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.3896, allocations: 2.125 kB / 0.5345 GB, free: 9.668 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.002e-05/0.3897, allocations: 136.5 kB / 0.5347 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.3897, allocations: 6.281 kB / 0.5347 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.764e-06/0.3897, allocations: 3.125 kB / 0.5347 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.3897, allocations: 4 kB / 0.5347 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.3897, allocations: 3.938 kB / 0.5347 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.3897, allocations: 0 / 0.5347 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.144e-05/0.3898, allocations: 147.5 kB / 0.5348 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.72e-07/0.3898, allocations: 0 / 0.5348 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.42e-07/0.3898, allocations: 3.812 kB / 0.5348 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.3898, allocations: 3.938 kB / 0.5348 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.3898, allocations: 0 / 0.5348 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.3898, allocations: 0 / 0.5348 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3898, allocations: 3.938 kB / 0.5348 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001053/0.39, allocations: 97.77 kB / 0.5349 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.42e-05/0.39, allocations: 85.05 kB / 0.535 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.39, allocations: 1.375 kB / 0.535 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.106e-06/0.39, allocations: 0 / 0.535 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.105e-05/0.39, allocations: 1.375 kB / 0.535 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.3901, allocations: 0 / 0.535 GB, free: 9.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.131e-05/0.3901, allocations: 76.66 kB / 0.5351 GB, free: 9.023 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3901, allocations: 4.031 kB / 0.5351 GB, free: 9.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001995/0.3903, allocations: 13.75 kB / 0.5351 GB, free: 9.02 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.0004875/0.3908, allocations: 0.6691 MB / 0.5358 GB, free: 8.359 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.627e-05/0.3909, allocations: 64.88 kB / 0.5358 GB, free: 8.289 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3909, allocations: 0 / 0.5358 GB, free: 8.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.002e-05/0.3909, allocations: 59.52 kB / 0.5359 GB, free: 8.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001155/0.3911, allocations: 6.656 kB / 0.5359 GB, free: 8.223 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.3914, allocations: 116.5 kB / 0.536 GB, free: 8.082 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.3916, allocations: 0.6742 MB / 0.5367 GB, free: 7.383 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.452e-06/0.3916, allocations: 0 / 0.5367 GB, free: 7.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.126e-05/0.3916, allocations: 12.75 kB / 0.5367 GB, free: 7.371 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3916, allocations: 4.125 kB / 0.5367 GB, free: 7.367 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01719/0.4088, allocations: 1.471 MB / 0.5381 GB, free: 6.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.368/7.777, allocations: 13.09 kB / 0.5381 GB, free: 6.484 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