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.001591/0.001591, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001815/0.001815, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2155/0.2155, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 75.86 kB / 480.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3336, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001362/0.335, allocations: 492.4 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.3369, allocations: 1.641 MB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.887e-05/0.3369, allocations: 0 / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.07e-05/0.3369, allocations: 4 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.1e-06/0.3369, 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.0005839/0.3375, allocations: 161.8 kB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.164e-05/0.3376, allocations: 1.688 kB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.198e-05/0.3376, allocations: 0 / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.41e-05/0.3376, allocations: 9.531 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.802e-05/0.3377, allocations: 0 / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.286e-06/0.3377, allocations: 0 / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003364/0.338, allocations: 127.1 kB / 0.5329 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.941e-06/0.338, allocations: 0 / 0.5329 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.823e-05/0.3381, allocations: 1.875 kB / 0.5329 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.3382, allocations: 40.81 kB / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3382, allocations: 0 / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3382, allocations: 0 / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.379e-06/0.3382, allocations: 2.688 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.0002718/0.3385, allocations: 347.4 kB / 0.5332 GB, free: 11.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3385, allocations: 13.61 kB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.644e-05/0.3386, allocations: 30.75 kB / 0.5333 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.393e-05/0.3386, allocations: 2.312 kB / 0.5333 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.411e-05/0.3387, allocations: 164.4 kB / 0.5334 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-06/0.3387, allocations: 4.312 kB / 0.5334 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.643e-06/0.3387, allocations: 1.75 kB / 0.5334 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.595e-05/0.3388, allocations: 36.52 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.3388, allocations: 7.938 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.523e-06/0.3388, allocations: 0 / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3388, allocations: 1.375 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.736e-05/0.3388, allocations: 5.359 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001152/0.339, allocations: 143.1 kB / 0.5336 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.746e-05/0.339, allocations: 23.94 kB / 0.5337 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.388e-05/0.339, allocations: 6.234 kB / 0.5337 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.813e-06/0.339, allocations: 0 / 0.5337 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/0.3391, allocations: 69.52 kB / 0.5337 GB, free: 10.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3391, allocations: 0 / 0.5337 GB, free: 10.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.3392, allocations: 63.64 kB / 0.5338 GB, free: 10.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.3393, allocations: 77.11 kB / 0.5339 GB, free: 10.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.884e-05/0.3393, allocations: 99.19 kB / 0.534 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.3393, allocations: 25.7 kB / 0.534 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.456e-05/0.3394, allocations: 80.14 kB / 0.5341 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.33e-05/0.3394, allocations: 5.5 kB / 0.5341 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.424e-05/0.3394, allocations: 11.09 kB / 0.5341 GB, free: 10.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.312e-05/0.3395, allocations: 316.2 kB / 0.5344 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.073e-05/0.3395, allocations: 5.375 kB / 0.5344 GB, free: 9.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.941e-06/0.3395, allocations: 0 / 0.5344 GB, free: 9.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.342e-05/0.3396, allocations: 68.33 kB / 0.5344 GB, free: 9.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3396, allocations: 0 / 0.5344 GB, free: 9.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.831e-05/0.3397, allocations: 58.38 kB / 0.5345 GB, free: 9.711 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.3397, allocations: 43.12 kB / 0.5345 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3397, allocations: 0 / 0.5345 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.3397, allocations: 1.375 kB / 0.5345 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.3397, allocations: 0 / 0.5345 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.3397, allocations: 0 / 0.5345 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.387e-05/0.3398, allocations: 1.375 kB / 0.5345 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.3398, allocations: 0 / 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 7.232e-05/0.3398, allocations: 134.3 kB / 0.5347 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.997e-06/0.3399, allocations: 5.312 kB / 0.5347 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.296e-06/0.3399, allocations: 7.125 kB / 0.5347 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-06/0.3399, allocations: 3.938 kB / 0.5347 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3399, allocations: 5.359 kB / 0.5347 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.3399, allocations: 3.938 kB / 0.5347 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.104e-05/0.34, allocations: 147.1 kB / 0.5348 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.34, allocations: 0 / 0.5348 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.34, allocations: 1.375 kB / 0.5348 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.34, allocations: 3.938 kB / 0.5348 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.34, allocations: 1.375 kB / 0.5348 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.34, allocations: 0 / 0.5348 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.34, allocations: 7.938 kB / 0.5348 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.229e-05/0.3401, allocations: 89.83 kB / 0.5349 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.933e-05/0.3402, allocations: 82.42 kB / 0.535 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.3402, allocations: 1.375 kB / 0.535 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.025e-05/0.3402, allocations: 3.984 kB / 0.535 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.299e-05/0.3402, allocations: 1.375 kB / 0.535 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-06/0.3402, allocations: 0 / 0.535 GB, free: 9.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.204e-05/0.3403, allocations: 79.31 kB / 0.5351 GB, free: 9.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3403, allocations: 1.375 kB / 0.5351 GB, free: 9.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002081/0.3405, allocations: 16.31 kB / 0.5351 GB, free: 9.016 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.0004816/0.341, allocations: 0.678 MB / 0.5358 GB, free: 8.348 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.854e-05/0.3411, allocations: 56.91 kB / 0.5358 GB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3411, allocations: 0 / 0.5358 GB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.025e-05/0.3411, allocations: 58.16 kB / 0.5359 GB, free: 8.219 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.3412, allocations: 5.703 kB / 0.5359 GB, free: 8.219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002605/0.3415, allocations: 119 kB / 0.536 GB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002135/0.3417, allocations: 0.6703 MB / 0.5367 GB, free: 7.379 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.26e-06/0.3417, allocations: 4.062 kB / 0.5367 GB, free: 7.375 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.041e-05/0.3418, allocations: 12.81 kB / 0.5367 GB, free: 7.363 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3418, allocations: 0 / 0.5367 GB, free: 7.363 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01529/0.3571, allocations: 1.464 MB / 0.5381 GB, free: 6.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.383/7.74, allocations: 9.344 kB / 0.5381 GB, free: 6.488 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.csv","/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