Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.001314/0.001314, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001468/0.001468, allocations: 212.7 kB / 23.74 MB, free: 4.656 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.396/1.396, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2205/0.2205, allocations: 46.94 MB / 360.9 MB, free: 4.258 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.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 64.08 kB / 0.4961 GB, free: 7.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3357, allocations: 66.03 MB / 0.5606 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001568/0.3373, allocations: 0.4955 MB / 0.5611 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.3391, allocations: 1.414 MB / 0.5625 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.272e-05/0.3391, allocations: 0 / 0.5625 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.756e-05/0.3391, allocations: 0 / 0.5625 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.698e-05/0.3392, allocations: 4 kB / 0.5625 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006659/0.3398, allocations: 219.8 kB / 0.5627 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.427e-05/0.3399, allocations: 8 kB / 0.5627 GB, free: 2.352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.3399, allocations: 4 kB / 0.5627 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.397e-05/0.3399, allocations: 0 / 0.5627 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.132e-05/0.34, allocations: 11.97 kB / 0.5627 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.082e-05/0.34, allocations: 0 / 0.5627 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004406/0.3404, allocations: 271.6 kB / 0.563 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.262e-05/0.3405, allocations: 11.88 kB / 0.563 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.446e-05/0.3405, allocations: 0 / 0.563 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.3407, allocations: 145.5 kB / 0.5631 GB, free: 1.918 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.3407, allocations: 4 kB / 0.5631 GB, free: 1.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3407, allocations: 0 / 0.5631 GB, free: 1.914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.3407, allocations: 4 kB / 0.5631 GB, free: 1.91 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003271/0.341, allocations: 258.3 kB / 0.5634 GB, free: 1.629 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.3411, allocations: 8.031 kB / 0.5634 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.235e-05/0.3411, allocations: 30.75 kB / 0.5634 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.326e-05/0.3411, allocations: 4.891 kB / 0.5634 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.708e-05/0.3412, allocations: 106.5 kB / 0.5635 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-06/0.3412, allocations: 4.312 kB / 0.5635 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.238e-06/0.3412, allocations: 4.375 kB / 0.5635 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.3413, allocations: 45.81 kB / 0.5636 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.3413, allocations: 3.938 kB / 0.5636 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.3413, allocations: 4 kB / 0.5636 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3413, allocations: 0 / 0.5636 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.145e-05/0.3414, allocations: 11.94 kB / 0.5636 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003225/0.3417, allocations: 215.9 kB / 0.5638 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.136e-05/0.3417, allocations: 22.58 kB / 0.5638 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.516e-05/0.3418, allocations: 4.859 kB / 0.5638 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.3418, allocations: 0 / 0.5638 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.3418, allocations: 34.56 kB / 0.5639 GB, free: 1.035 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.555e-06/0.3418, allocations: 3.984 kB / 0.5639 GB, free: 1.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001353/0.3419, allocations: 41.69 kB / 0.5639 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.342, allocations: 51.41 kB / 0.564 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.734e-05/0.342, allocations: 97.98 kB / 0.5641 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.3421, allocations: 29.7 kB / 0.5641 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.896e-05/0.3421, allocations: 84.09 kB / 0.5642 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.883e-06/0.3421, allocations: 3.953 kB / 0.5642 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.3421, allocations: 17.7 kB / 0.5642 GB, free: 0.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3423, allocations: 318.8 kB / 0.5645 GB, free: 356 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.248e-05/0.3423, allocations: 4 kB / 0.5645 GB, free: 352 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.74e-05/0.3423, allocations: 22.7 kB / 0.5645 GB, free: 320 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.94e-05/0.3424, allocations: 30.5 kB / 0.5645 GB, free: 280 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3424, allocations: 0 / 0.5645 GB, free: 280 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.966e-05/0.3424, allocations: 41.64 kB / 0.5646 GB, free: 232 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.3425, allocations: 8 kB / 0.5646 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.3425, allocations: 4.094 kB / 0.5646 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.3425, allocations: 0 / 0.5646 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.935e-05/0.3425, allocations: 15.98 kB / 0.5646 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.3425, allocations: 0 / 0.5646 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.508e-05/0.3425, allocations: 0 / 0.5646 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.3425, allocations: 4 kB / 0.5646 GB, free: 200 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.035e-05/0.3426, allocations: 117.7 kB / 0.5647 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.18e-05/0.3426, allocations: 0 / 0.5647 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.3427, allocations: 48.84 kB / 0.5648 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.3428, allocations: 3.938 kB / 0.5648 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3428, allocations: 4 kB / 0.5648 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.3428, allocations: 0 / 0.5648 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.3429, allocations: 120.7 kB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.3429, allocations: 4 kB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.3429, allocations: 0 / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.3429, allocations: 0 / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.189e-06/0.3429, allocations: 0 / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3429, allocations: 4.031 kB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3429, allocations: 3.938 kB / 0.5649 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001055/0.343, allocations: 139.4 kB / 0.565 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.267e-06/0.343, allocations: 7.984 kB / 0.565 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-06/0.3431, allocations: 4 kB / 0.5651 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.443e-05/0.3431, allocations: 0 / 0.5651 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.3431, allocations: 0 / 0.5651 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.3431, allocations: 4.031 kB / 0.5651 GB, free: 15.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.234e-05/0.3432, allocations: 79.28 kB / 0.5651 GB, free: 15.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3432, allocations: 0 / 0.5651 GB, free: 15.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002778/0.3434, allocations: 47.92 kB / 0.5652 GB, free: 15.54 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: 0 () * Number of discrete states: 0 () * 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: 0 * Record equations: 1 * 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.0005777/0.344, allocations: 0.7085 MB / 0.5659 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.626e-05/0.3441, allocations: 12 kB / 0.5659 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3441, allocations: 0 / 0.5659 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.88e-05/0.3441, allocations: 25.7 kB / 0.5659 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.3443, allocations: 4 kB / 0.5659 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003902/0.3447, allocations: 130.5 kB / 0.566 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.3451, allocations: 0.6768 MB / 0.5667 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.097e-05/0.3451, allocations: 4.25 kB / 0.5667 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.499e-05/0.3451, allocations: 11.44 kB / 0.5667 GB, free: 13.87 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3451, allocations: 0 / 0.5667 GB, free: 13.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02736/0.3725, allocations: 1.947 MB / 0.5686 GB, free: 12.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.08, allocations: 7.109 kB / 0.5686 GB, free: 12.04 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.852748074103147]