Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00174/0.00174, allocations: 111.1 kB / 20.44 MB, free: 1.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001888/0.001888, allocations: 210.3 kB / 23.72 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.414/1.414, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.224/0.224, allocations: 46.96 MB / 360.9 MB, free: 4.055 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 71.89 kB / 0.4961 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3269, allocations: 66.04 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001713/0.3286, allocations: 489.1 kB / 0.5611 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002187/0.3308, allocations: 1.579 MB / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.132e-05/0.3308, allocations: 0 / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.3308, allocations: 0 / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.3308, allocations: 0 / 0.5626 GB, free: 2.176 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.0006366/0.3314, allocations: 159.4 kB / 0.5627 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.982e-05/0.3315, allocations: 4 kB / 0.5627 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.172e-05/0.3315, allocations: 0 / 0.5627 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.441e-05/0.3316, allocations: 0 / 0.5627 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.864e-05/0.3316, allocations: 7.984 kB / 0.5628 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.233e-06/0.3316, allocations: 0 / 0.5628 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003939/0.332, allocations: 119.9 kB / 0.5629 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.143e-06/0.332, allocations: 0 / 0.5629 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.168e-05/0.332, allocations: 7.922 kB / 0.5629 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.3321, allocations: 41.78 kB / 0.5629 GB, free: 1.844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.3321, allocations: 0 / 0.5629 GB, free: 1.844 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3321, allocations: 0 / 0.5629 GB, free: 1.844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.3321, allocations: 0 / 0.5629 GB, free: 1.844 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.0003206/0.3325, allocations: 276 kB / 0.5632 GB, free: 1.539 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.3325, allocations: 12.03 kB / 0.5632 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.494e-05/0.3325, allocations: 34.75 kB / 0.5632 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.145e-05/0.3326, allocations: 0.9375 kB / 0.5632 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.777e-05/0.3327, allocations: 110.5 kB / 0.5633 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.3327, allocations: 4.312 kB / 0.5633 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.3327, allocations: 4.375 kB / 0.5633 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.827e-05/0.3328, allocations: 55.53 kB / 0.5634 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.3328, allocations: 3.984 kB / 0.5634 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.3328, allocations: 4 kB / 0.5634 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-06/0.3328, allocations: 0 / 0.5634 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.739e-05/0.3328, allocations: 25.7 kB / 0.5634 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001193/0.3329, allocations: 116.8 kB / 0.5635 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.323e-05/0.333, allocations: 52.22 kB / 0.5636 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.01e-05/0.333, allocations: 34.66 kB / 0.5636 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.843e-06/0.333, allocations: 0 / 0.5636 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/0.3331, allocations: 64.19 kB / 0.5637 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.3331, allocations: 3.938 kB / 0.5637 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000181/0.3333, allocations: 114.8 kB / 0.5638 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.3333, allocations: 85.09 kB / 0.5639 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.971e-05/0.3334, allocations: 93.81 kB / 0.564 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.3334, allocations: 25.7 kB / 0.564 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.047e-05/0.3334, allocations: 84.27 kB / 0.5641 GB, free: 444 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.562e-05/0.3334, allocations: 0 / 0.5641 GB, free: 444 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.852e-05/0.3334, allocations: 13.72 kB / 0.5641 GB, free: 424 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.3336, allocations: 310.8 kB / 0.5644 GB, free: 104 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.555e-05/0.3336, allocations: 33.64 kB / 0.5644 GB, free: 64 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.214e-05/0.3336, allocations: 33.7 kB / 0.5644 GB, free: 24 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.506e-05/0.3337, allocations: 64.25 kB / 0.5645 GB, free: 15.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3337, allocations: 0 / 0.5645 GB, free: 15.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.43e-05/0.3338, allocations: 85.11 kB / 0.5646 GB, free: 15.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/0.3338, allocations: 37.73 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.3338, allocations: 4 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.3338, allocations: 0 / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.3338, allocations: 0 / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.3338, allocations: 0 / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.476e-05/0.3338, allocations: 3.984 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.3338, allocations: 8 kB / 0.5646 GB, free: 15.79 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 8.424e-05/0.3339, allocations: 135.5 kB / 0.5648 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.105e-05/0.3339, allocations: 7.938 kB / 0.5648 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.017e-06/0.3339, allocations: 3 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3339, allocations: 0 / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3339, allocations: 7.938 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-06/0.3339, allocations: 0 / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.031e-05/0.334, allocations: 116.8 kB / 0.5649 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.334, allocations: 4 kB / 0.5649 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.334, allocations: 0 / 0.5649 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.334, allocations: 3.938 kB / 0.5649 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.334, allocations: 0 / 0.5649 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.3341, allocations: 0 / 0.5649 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3341, allocations: 0 / 0.5649 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001269/0.3342, allocations: 120.5 kB / 0.565 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.833e-06/0.3342, allocations: 11.97 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.002e-05/0.3342, allocations: 3.938 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-06/0.3342, allocations: 0 / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.287e-05/0.3342, allocations: 0 / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.3342, allocations: 3.938 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.427e-05/0.3343, allocations: 79.28 kB / 0.5651 GB, free: 15.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3343, allocations: 0 / 0.5651 GB, free: 15.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002108/0.3345, allocations: 19.92 kB / 0.5651 GB, free: 15.19 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.000578/0.335, allocations: 0.7064 MB / 0.5658 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.3352, allocations: 114.8 kB / 0.5659 GB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3352, allocations: 0 / 0.5659 GB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.276e-05/0.3352, allocations: 85.05 kB / 0.566 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.3354, allocations: 7.094 kB / 0.566 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003012/0.3357, allocations: 140.4 kB / 0.5662 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.439e-05/0.3357, allocations: 55.36 kB / 0.5662 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.149e-06/0.3357, allocations: 0 / 0.5662 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.916e-05/0.3357, allocations: 11.56 kB / 0.5662 GB, free: 13.94 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3357, allocations: 3.938 kB / 0.5662 GB, free: 13.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.3615, allocations: 2.023 MB / 0.5682 GB, free: 12.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.91, allocations: 6.656 kB / 0.5682 GB, free: 12.03 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/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_4.1.0_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: 13.676017813995713]