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.001695/0.001695, allocations: 122.1 kB / 17.79 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.002022/0.002022, allocations: 201.2 kB / 18.74 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.41/1.41, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2052/0.2052, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 67.89 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3545, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001486/0.3561, allocations: 488.6 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002224/0.3583, allocations: 1.646 MB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.884e-05/0.3583, allocations: 0 / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.412e-05/0.3584, allocations: 0 / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.676e-06/0.3584, allocations: 3.938 kB / 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.0006439/0.359, allocations: 164.9 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.442e-05/0.3591, allocations: 1.219 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.513e-05/0.3591, allocations: 1.812 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.909e-05/0.3592, allocations: 5.219 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.522e-05/0.3592, allocations: 3.984 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.305e-06/0.3592, allocations: 4 kB / 0.5327 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003679/0.3596, allocations: 119.1 kB / 0.5329 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.885e-06/0.3596, allocations: 0 / 0.5329 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.049e-05/0.3596, allocations: 9.188 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.3598, allocations: 29.78 kB / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3598, allocations: 0 / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3598, allocations: 0 / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.3598, allocations: 0 / 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.0003535/0.3601, allocations: 357.8 kB / 0.5332 GB, free: 11.17 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.3602, allocations: 9.406 kB / 0.5332 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.864e-05/0.3602, allocations: 30.75 kB / 0.5333 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.543e-05/0.3603, allocations: 6.344 kB / 0.5333 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.3604, allocations: 164.4 kB / 0.5334 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.3604, allocations: 8.312 kB / 0.5334 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-06/0.3604, allocations: 1.781 kB / 0.5334 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.702e-05/0.3605, allocations: 32.8 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.3605, allocations: 3.938 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-06/0.3605, allocations: 4 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.3605, allocations: 0 / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.688e-05/0.3605, allocations: 1.688 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001407/0.3607, allocations: 151.5 kB / 0.5336 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.867e-05/0.3607, allocations: 16.33 kB / 0.5336 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.495e-05/0.3608, allocations: 6.703 kB / 0.5337 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.875e-06/0.3608, allocations: 0 / 0.5337 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.724e-05/0.3608, allocations: 66.11 kB / 0.5337 GB, free: 10.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3608, allocations: 0 / 0.5337 GB, free: 10.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001779/0.361, allocations: 70.64 kB / 0.5338 GB, free: 10.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.589e-05/0.3611, allocations: 77.11 kB / 0.5339 GB, free: 10.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.343e-05/0.3611, allocations: 95.59 kB / 0.5339 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.3612, allocations: 25.7 kB / 0.534 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.916e-05/0.3612, allocations: 80.14 kB / 0.5341 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.3612, allocations: 1.781 kB / 0.5341 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.3612, allocations: 15.66 kB / 0.5341 GB, free: 10.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3614, allocations: 314.8 kB / 0.5344 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.134e-05/0.3614, allocations: 1.812 kB / 0.5344 GB, free: 9.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.99e-06/0.3614, allocations: 0 / 0.5344 GB, free: 9.855 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.89e-05/0.3615, allocations: 67.78 kB / 0.5344 GB, free: 9.777 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3615, allocations: 0 / 0.5344 GB, free: 9.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.469e-05/0.3615, allocations: 58.62 kB / 0.5345 GB, free: 9.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.3616, allocations: 38.95 kB / 0.5345 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.3616, allocations: 4.094 kB / 0.5345 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.3616, allocations: 1.812 kB / 0.5345 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.3616, allocations: 0 / 0.5345 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.3616, allocations: 0 / 0.5345 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.516e-05/0.3616, allocations: 1.781 kB / 0.5345 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.3617, allocations: 3.984 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 8.364e-05/0.3617, allocations: 133.3 kB / 0.5347 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.838e-06/0.3618, allocations: 5.719 kB / 0.5347 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.002e-05/0.3618, allocations: 3.125 kB / 0.5347 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.3618, allocations: 7.938 kB / 0.5347 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.3618, allocations: 1.781 kB / 0.5347 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3618, allocations: 3.984 kB / 0.5347 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.36e-05/0.3619, allocations: 147.5 kB / 0.5348 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.3619, allocations: 3.938 kB / 0.5348 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3619, allocations: 0 / 0.5348 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3619, allocations: 3.938 kB / 0.5348 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.3619, allocations: 1.781 kB / 0.5348 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3619, allocations: 3.938 kB / 0.5348 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3619, allocations: 0 / 0.5348 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.488e-05/0.362, allocations: 94.61 kB / 0.5349 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.359e-05/0.3621, allocations: 81.05 kB / 0.535 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.254e-05/0.3621, allocations: 6.062 kB / 0.535 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.236e-06/0.3621, allocations: 0 / 0.535 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.406e-05/0.3621, allocations: 4 kB / 0.535 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.3621, allocations: 1.5 kB / 0.535 GB, free: 9.094 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.939e-05/0.3622, allocations: 75.28 kB / 0.5351 GB, free: 9.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3622, allocations: 4.031 kB / 0.5351 GB, free: 9.016 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002027/0.3624, allocations: 22.42 kB / 0.5351 GB, free: 9.008 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.0005136/0.3629, allocations: 0.6682 MB / 0.5358 GB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.764e-05/0.363, allocations: 64.92 kB / 0.5358 GB, free: 8.281 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.363, allocations: 0 / 0.5358 GB, free: 8.281 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.594e-05/0.3631, allocations: 54.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.0001173/0.3632, allocations: 5.141 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.0003049/0.3635, allocations: 119.1 kB / 0.536 GB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005021/0.364, allocations: 0.6741 MB / 0.5367 GB, free: 7.375 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.811e-06/0.364, allocations: 7.875 kB / 0.5367 GB, free: 7.367 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.456e-05/0.3641, allocations: 8.812 kB / 0.5367 GB, free: 7.359 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3641, allocations: 4.125 kB / 0.5367 GB, free: 7.355 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01985/0.3839, allocations: 1.457 MB / 0.5381 GB, free: 6.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.192/7.576, allocations: 12.81 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