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.001271/0.001271, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, 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.2335/0.2335, allocations: 46.12 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002166, allocations: 75.88 kB / 480.9 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3675, allocations: 62.45 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001647/0.3692, allocations: 498.7 kB / 0.5311 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002406/0.3717, allocations: 1.644 MB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.271e-05/0.3717, allocations: 5.875 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.224e-05/0.3717, allocations: 0 / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.262e-06/0.3718, allocations: 0 / 0.5327 GB, free: 11.71 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.0007064/0.3725, allocations: 156.5 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.508e-05/0.3725, allocations: 9.266 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.787e-05/0.3726, allocations: 5.594 kB / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.884e-05/0.3726, allocations: 3.938 kB / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.543e-05/0.3726, allocations: 1.656 kB / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.353e-06/0.3727, allocations: 0 / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003985/0.3731, allocations: 121.8 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.795e-06/0.3731, allocations: 1.5 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.699e-05/0.3731, allocations: 0 / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.3732, allocations: 32.83 kB / 0.533 GB, free: 11.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3732, allocations: 1.844 kB / 0.533 GB, free: 11.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3732, allocations: 4 kB / 0.533 GB, free: 11.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.3733, allocations: 0 / 0.533 GB, free: 11.52 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.0004133/0.3737, allocations: 352.1 kB / 0.5333 GB, free: 11.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3737, allocations: 10.81 kB / 0.5333 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.3738, allocations: 30.75 kB / 0.5334 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.801e-05/0.3738, allocations: 4.875 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.374, allocations: 162.2 kB / 0.5335 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.374, allocations: 4.312 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.692e-06/0.374, allocations: 384 / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.673e-05/0.3741, allocations: 41.34 kB / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.3741, allocations: 0 / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.3741, allocations: 0 / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.3741, allocations: 0 / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.094e-05/0.3742, allocations: 5.75 kB / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001715/0.3743, allocations: 147.5 kB / 0.5337 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.032e-05/0.3744, allocations: 16.36 kB / 0.5337 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.817e-05/0.3744, allocations: 6.641 kB / 0.5337 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.391e-06/0.3744, allocations: 4 kB / 0.5337 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.937e-05/0.3745, allocations: 65.97 kB / 0.5338 GB, free: 10.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.473e-06/0.3745, allocations: 0 / 0.5338 GB, free: 10.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000189/0.3747, allocations: 70.48 kB / 0.5339 GB, free: 10.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.39e-05/0.3748, allocations: 77.11 kB / 0.5339 GB, free: 10.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.65e-05/0.3748, allocations: 95.62 kB / 0.534 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.3748, allocations: 25.7 kB / 0.5341 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.297e-05/0.3749, allocations: 84.27 kB / 0.5341 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.3749, allocations: 3.984 kB / 0.5341 GB, free: 10.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.169e-05/0.375, allocations: 13.47 kB / 0.5342 GB, free: 10.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.3752, allocations: 314.8 kB / 0.5345 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.098e-05/0.3752, allocations: 0 / 0.5345 GB, free: 9.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.999e-06/0.3752, allocations: 2.094 kB / 0.5345 GB, free: 9.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.891e-05/0.3752, allocations: 60.64 kB / 0.5345 GB, free: 9.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3753, allocations: 4 kB / 0.5345 GB, free: 9.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.467e-05/0.3753, allocations: 65.05 kB / 0.5346 GB, free: 9.676 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.261e-05/0.3754, allocations: 36.89 kB / 0.5346 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.3754, allocations: 1.25 kB / 0.5346 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.3754, allocations: 0 / 0.5346 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.068e-06/0.3754, allocations: 4 kB / 0.5346 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.3754, allocations: 1.344 kB / 0.5346 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/0.3755, allocations: 0 / 0.5346 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.3755, allocations: 1.281 kB / 0.5346 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 0.0001164/0.3756, allocations: 142 kB / 0.5348 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.3756, allocations: 9.172 kB / 0.5348 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.101e-05/0.3756, allocations: 3.125 kB / 0.5348 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3756, allocations: 3.938 kB / 0.5348 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3757, allocations: 1.281 kB / 0.5348 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.696e-06/0.3757, allocations: 0 / 0.5348 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.3758, allocations: 142.9 kB / 0.5349 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3758, allocations: 3.938 kB / 0.5349 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-07/0.3758, allocations: 1.375 kB / 0.5349 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.3758, allocations: 7.922 kB / 0.5349 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.3758, allocations: 5.594 kB / 0.5349 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3758, allocations: 0 / 0.5349 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3758, allocations: 3.938 kB / 0.5349 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001173/0.376, allocations: 85.75 kB / 0.535 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.275e-05/0.376, allocations: 87.25 kB / 0.5351 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.376, allocations: 0 / 0.5351 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.164e-05/0.3761, allocations: 0 / 0.5351 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.335e-05/0.3761, allocations: 2.094 kB / 0.5351 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.3761, allocations: 4.031 kB / 0.5351 GB, free: 9.062 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.293e-05/0.3761, allocations: 75.28 kB / 0.5352 GB, free: 8.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3761, allocations: 0 / 0.5352 GB, free: 8.988 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000239/0.3764, allocations: 22.19 kB / 0.5352 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.0006795/0.3771, allocations: 0.6707 MB / 0.5359 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.3772, allocations: 60.91 kB / 0.5359 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3772, allocations: 0 / 0.5359 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.133e-05/0.3773, allocations: 59.52 kB / 0.536 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.3774, allocations: 1.375 kB / 0.536 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003318/0.3777, allocations: 115.1 kB / 0.5361 GB, free: 8.047 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.3781, allocations: 0.6743 MB / 0.5367 GB, free: 7.348 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.624e-06/0.3781, allocations: 11.86 kB / 0.5367 GB, free: 7.336 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.3781, allocations: 8.812 kB / 0.5368 GB, free: 7.328 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3781, allocations: 3.938 kB / 0.5368 GB, free: 7.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02295/0.4011, allocations: 1.454 MB / 0.5382 GB, free: 6.465 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.903/8.304, allocations: 13.31 kB / 0.5382 GB, free: 6.457 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