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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001376/0.001376, allocations: 110.4 kB / 21.1 MB, free: 0.7891 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001505, allocations: 205.4 kB / 24.38 MB, free: 4.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 230.2 MB / 257.7 MB, free: 8.273 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2307/0.2307, allocations: 46.88 MB / 361 MB, free: 4.477 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002211/0.002211, allocations: 75.88 kB / 0.4962 GB, free: 8.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3527, allocations: 66.03 MB / 0.5606 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001787/0.3545, allocations: 493.1 kB / 0.5611 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002531/0.3571, allocations: 1.664 MB / 0.5627 GB, free: 2.516 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.882e-05/0.3571, allocations: 0 / 0.5627 GB, free: 2.516 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.313e-05/0.3571, allocations: 0 / 0.5627 GB, free: 2.516 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.3571, allocations: 0 / 0.5627 GB, free: 2.516 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.0006946/0.3578, allocations: 175.4 kB / 0.5629 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.75e-05/0.3579, allocations: 3.938 kB / 0.5629 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.725e-05/0.3579, allocations: 0 / 0.5629 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.684e-05/0.3579, allocations: 4 kB / 0.5629 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.315e-05/0.3579, allocations: 0 / 0.5629 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.514e-06/0.3579, allocations: 0 / 0.5629 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003924/0.3583, allocations: 119.9 kB / 0.563 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.095e-06/0.3583, allocations: 7.938 kB / 0.563 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.759e-05/0.3584, allocations: 4 kB / 0.563 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001191/0.3585, allocations: 33.78 kB / 0.5631 GB, free: 2.176 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3585, allocations: 0 / 0.5631 GB, free: 2.176 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3585, allocations: 0 / 0.5631 GB, free: 2.176 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.3585, allocations: 0 / 0.5631 GB, free: 2.176 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.0003788/0.3589, allocations: 353.2 kB / 0.5634 GB, free: 1.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.3589, allocations: 15.97 kB / 0.5634 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.931e-05/0.359, allocations: 30.75 kB / 0.5634 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.474e-05/0.359, allocations: 0.9375 kB / 0.5635 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/0.3591, allocations: 164.4 kB / 0.5636 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-06/0.3591, allocations: 384 / 0.5636 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.3591, allocations: 384 / 0.5636 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.29e-05/0.3592, allocations: 37.81 kB / 0.5636 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-06/0.3592, allocations: 0 / 0.5636 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.533e-06/0.3592, allocations: 0 / 0.5636 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.3592, allocations: 0 / 0.5636 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.012e-05/0.3592, allocations: 7.938 kB / 0.5637 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001483/0.3594, allocations: 145.7 kB / 0.5638 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.057e-05/0.3594, allocations: 18.58 kB / 0.5638 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.775e-05/0.3594, allocations: 8.953 kB / 0.5638 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.3595, allocations: 0 / 0.5638 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/0.3595, allocations: 64.19 kB / 0.5639 GB, free: 1.164 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.3595, allocations: 0 / 0.5639 GB, free: 1.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001784/0.3597, allocations: 67.34 kB / 0.5639 GB, free: 1.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.043e-05/0.3597, allocations: 85.17 kB / 0.564 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.41e-05/0.3598, allocations: 93.81 kB / 0.5641 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.3598, allocations: 25.7 kB / 0.5641 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.169e-05/0.3598, allocations: 80.14 kB / 0.5642 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.3599, allocations: 4 kB / 0.5642 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.737e-05/0.3599, allocations: 13.7 kB / 0.5642 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.36, allocations: 314.8 kB / 0.5645 GB, free: 440 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.285e-05/0.36, allocations: 4 kB / 0.5645 GB, free: 436 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-06/0.3601, allocations: 4 kB / 0.5645 GB, free: 432 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.106e-05/0.3601, allocations: 60.27 kB / 0.5646 GB, free: 356 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3601, allocations: 0 / 0.5646 GB, free: 356 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.205e-05/0.3602, allocations: 63.33 kB / 0.5647 GB, free: 280 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.3602, allocations: 37.64 kB / 0.5647 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.3602, allocations: 0 / 0.5647 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.3602, allocations: 0 / 0.5647 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.3602, allocations: 0 / 0.5647 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.3602, allocations: 0 / 0.5647 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.865e-05/0.3603, allocations: 4.094 kB / 0.5647 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.3603, allocations: 7.938 kB / 0.5647 GB, free: 224 kB / 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.0001016/0.3604, allocations: 140.8 kB / 0.5648 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.3604, allocations: 7.938 kB / 0.5648 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.457e-05/0.3604, allocations: 6.984 kB / 0.5649 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.3604, allocations: 0 / 0.5649 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3604, allocations: 0 / 0.5649 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.3604, allocations: 3.984 kB / 0.5649 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.3605, allocations: 141.7 kB / 0.565 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.3605, allocations: 4 kB / 0.565 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.785e-06/0.3605, allocations: 4 kB / 0.565 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3605, allocations: 3.938 kB / 0.565 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.3605, allocations: 7.984 kB / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3605, allocations: 0 / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3605, allocations: 0 / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001082/0.3607, allocations: 90.78 kB / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.649e-05/0.3607, allocations: 85.03 kB / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.3607, allocations: 4.031 kB / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.295e-06/0.3607, allocations: 0 / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.618e-05/0.3607, allocations: 4 kB / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.3607, allocations: 0 / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.054e-05/0.3608, allocations: 79.28 kB / 0.5653 GB, free: 15.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3608, allocations: 0 / 0.5653 GB, free: 15.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002047/0.361, allocations: 19.94 kB / 0.5653 GB, free: 15.52 MB / 414.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.0006116/0.3616, allocations: 0.6755 MB / 0.5659 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.3617, allocations: 59.41 kB / 0.566 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3617, allocations: 0 / 0.566 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.582e-05/0.3618, allocations: 55.41 kB / 0.566 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001191/0.3619, allocations: 7.109 kB / 0.5661 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003102/0.3622, allocations: 122.7 kB / 0.5662 GB, free: 14.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.3625, allocations: 0.6729 MB / 0.5668 GB, free: 13.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.581e-06/0.3625, allocations: 0 / 0.5668 GB, free: 13.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.494e-05/0.3625, allocations: 7.438 kB / 0.5668 GB, free: 13.8 MB / 414.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3625, allocations: 0 / 0.5668 GB, free: 13.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.3858, allocations: 1.496 MB / 0.5683 GB, free: 12.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.621/8.007, allocations: 11.86 kB / 0.5683 GB, free: 12.36 MB / 414.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.871566623914987]