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.001808/0.001808, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001783/0.001783, allocations: 214.6 kB / 23.73 MB, free: 4.164 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.424/1.424, allocations: 230.5 MB / 257.4 MB, free: 7.801 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.2298/0.2298, allocations: 46.95 MB / 360.8 MB, free: 3.93 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.002644/0.002644, allocations: 83.88 kB / 0.4961 GB, free: 7.562 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3436, allocations: 66.09 MB / 0.5607 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001627/0.3452, allocations: 487.6 kB / 0.5611 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00222/0.3474, allocations: 1.583 MB / 0.5627 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.956e-05/0.3475, allocations: 0 / 0.5627 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.068e-05/0.3475, allocations: 0 / 0.5627 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.37e-06/0.3475, allocations: 0 / 0.5627 GB, free: 1.832 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.0006721/0.3481, allocations: 166.8 kB / 0.5628 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.817e-05/0.3482, allocations: 3.984 kB / 0.5629 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.348e-05/0.3482, allocations: 0 / 0.5629 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.823e-05/0.3482, allocations: 4 kB / 0.5629 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.344e-05/0.3483, allocations: 0 / 0.5629 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.594e-06/0.3483, allocations: 0 / 0.5629 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003844/0.3487, allocations: 123.9 kB / 0.563 GB, free: 1.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.246e-05/0.3487, allocations: 4 kB / 0.563 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.366e-05/0.3487, allocations: 0 / 0.563 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.3488, allocations: 37.72 kB / 0.563 GB, free: 1.504 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3488, allocations: 0 / 0.563 GB, free: 1.504 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3488, allocations: 0 / 0.563 GB, free: 1.504 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.3488, allocations: 0 / 0.563 GB, free: 1.504 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.0003962/0.3492, allocations: 280 kB / 0.5633 GB, free: 1.195 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.3493, allocations: 8.031 kB / 0.5633 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.122e-05/0.3493, allocations: 30.75 kB / 0.5633 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.3493, allocations: 4.938 kB / 0.5633 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.92e-05/0.3494, allocations: 110.5 kB / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.3494, allocations: 384 / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.083e-06/0.3494, allocations: 384 / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.3496, allocations: 59.53 kB / 0.5635 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.3496, allocations: 0 / 0.5635 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.228e-06/0.3496, allocations: 3.984 kB / 0.5635 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.3496, allocations: 3.938 kB / 0.5635 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.003e-05/0.3496, allocations: 33.69 kB / 0.5635 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001616/0.3498, allocations: 120.8 kB / 0.5636 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.199e-05/0.3499, allocations: 52.25 kB / 0.5637 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.006e-05/0.3499, allocations: 30.56 kB / 0.5637 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.804e-06/0.3499, allocations: 0 / 0.5637 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.238e-05/0.35, allocations: 68.25 kB / 0.5638 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.35, allocations: 4 kB / 0.5638 GB, free: 0.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002058/0.3502, allocations: 110.8 kB / 0.5639 GB, free: 420 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.672e-05/0.3502, allocations: 77.11 kB / 0.564 GB, free: 324 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.6e-05/0.3503, allocations: 97.8 kB / 0.5641 GB, free: 216 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.3503, allocations: 33.58 kB / 0.5641 GB, free: 176 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.161e-05/0.3503, allocations: 80.14 kB / 0.5642 GB, free: 92 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.3504, allocations: 8.125 kB / 0.5642 GB, free: 84 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.873e-05/0.3504, allocations: 13.72 kB / 0.5642 GB, free: 64 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3506, allocations: 310.8 kB / 0.5645 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.453e-05/0.3506, allocations: 29.7 kB / 0.5645 GB, free: 15.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.062e-05/0.3506, allocations: 29.7 kB / 0.5645 GB, free: 15.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.202e-05/0.3507, allocations: 64.27 kB / 0.5646 GB, free: 15.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3507, allocations: 0 / 0.5646 GB, free: 15.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.659e-05/0.3508, allocations: 89.09 kB / 0.5647 GB, free: 15.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.3508, allocations: 33.64 kB / 0.5647 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.3508, allocations: 4.094 kB / 0.5647 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.3508, allocations: 0 / 0.5647 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.055e-06/0.3508, allocations: 3.938 kB / 0.5647 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.3508, allocations: 4 kB / 0.5647 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.642e-05/0.3508, allocations: 0 / 0.5647 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-06/0.3508, allocations: 3.984 kB / 0.5647 GB, free: 15.44 MB / 414.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.000101/0.3509, allocations: 135.5 kB / 0.5649 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.351, allocations: 7.938 kB / 0.5649 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.08e-05/0.351, allocations: 3 kB / 0.5649 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.351, allocations: 0 / 0.5649 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.351, allocations: 4 kB / 0.5649 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.351, allocations: 0 / 0.5649 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.3511, allocations: 120.8 kB / 0.565 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3511, allocations: 0 / 0.565 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.3511, allocations: 0 / 0.565 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3511, allocations: 3.938 kB / 0.565 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.3511, allocations: 0 / 0.565 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.3511, allocations: 0 / 0.565 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3511, allocations: 4 kB / 0.565 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001231/0.3512, allocations: 120.5 kB / 0.5651 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-06/0.3512, allocations: 7.875 kB / 0.5651 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.04e-05/0.3512, allocations: 7.969 kB / 0.5651 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.386e-06/0.3512, allocations: 0 / 0.5651 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.318e-05/0.3513, allocations: 4 kB / 0.5651 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.3513, allocations: 4 kB / 0.5651 GB, free: 14.94 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.697e-05/0.3513, allocations: 79.22 kB / 0.5652 GB, free: 14.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3513, allocations: 0 / 0.5652 GB, free: 14.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002254/0.3515, allocations: 19.94 kB / 0.5652 GB, free: 14.84 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.0006785/0.3522, allocations: 0.6924 MB / 0.5659 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001314/0.3523, allocations: 122.7 kB / 0.566 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3523, allocations: 0 / 0.566 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.661e-05/0.3524, allocations: 81.11 kB / 0.5661 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.3525, allocations: 0 / 0.5661 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003422/0.3529, allocations: 144.4 kB / 0.5662 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.323e-05/0.3529, allocations: 55.36 kB / 0.5663 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.839e-06/0.3529, allocations: 0 / 0.5663 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.408e-05/0.3529, allocations: 7.438 kB / 0.5663 GB, free: 13.6 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3529, allocations: 8.125 kB / 0.5663 GB, free: 13.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.3796, allocations: 1.995 MB / 0.5683 GB, free: 11.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.31, allocations: 11.56 kB / 0.5683 GB, free: 11.68 MB / 414.1 MB " [Timeout remaining time 649] (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.1.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: 14.223437764216214]