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.001922/0.001922, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00226/0.00226, allocations: 212.4 kB / 23.73 MB, free: 4.387 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.225/0.225, allocations: 46.97 MB / 360.9 MB, free: 4.059 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.001979/0.001979, allocations: 63.89 kB / 0.4961 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.309, allocations: 66.04 MB / 0.5606 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001579/0.3106, allocations: 0.4916 MB / 0.5611 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.3125, allocations: 1.346 MB / 0.5624 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.257e-05/0.3125, allocations: 4 kB / 0.5624 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.251e-05/0.3125, allocations: 0 / 0.5624 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.932e-05/0.3125, allocations: 4 kB / 0.5624 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006675/0.3132, allocations: 215.3 kB / 0.5626 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.501e-05/0.3132, allocations: 11.98 kB / 0.5626 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.607e-05/0.3133, allocations: 4 kB / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.781e-05/0.3133, allocations: 0 / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.489e-05/0.3133, allocations: 4 kB / 0.5626 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.066e-05/0.3134, allocations: 0 / 0.5626 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004486/0.3138, allocations: 259.6 kB / 0.5628 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.394e-05/0.3138, allocations: 7.984 kB / 0.5629 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.036e-05/0.3138, allocations: 7.922 kB / 0.5629 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002271/0.3141, allocations: 141.5 kB / 0.563 GB, free: 1.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.3141, allocations: 0 / 0.563 GB, free: 1.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3141, allocations: 4 kB / 0.563 GB, free: 1.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.638e-06/0.3141, allocations: 0 / 0.563 GB, free: 1.762 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.0003376/0.3144, allocations: 254.3 kB / 0.5632 GB, free: 1.484 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3144, allocations: 8.031 kB / 0.5633 GB, free: 1.477 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.776e-05/0.3145, allocations: 34.75 kB / 0.5633 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.126e-05/0.3145, allocations: 8.891 kB / 0.5633 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.812e-05/0.3146, allocations: 106.5 kB / 0.5634 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.3146, allocations: 384 / 0.5634 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.315e-06/0.3146, allocations: 8.312 kB / 0.5634 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.3147, allocations: 75.47 kB / 0.5635 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.3147, allocations: 3.984 kB / 0.5635 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.3148, allocations: 0 / 0.5635 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.3148, allocations: 0 / 0.5635 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.739e-05/0.3148, allocations: 4 kB / 0.5635 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003485/0.3151, allocations: 219.9 kB / 0.5637 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.406e-05/0.3152, allocations: 22.52 kB / 0.5637 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.563e-05/0.3152, allocations: 8.797 kB / 0.5637 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.3152, allocations: 8.016 kB / 0.5637 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.3152, allocations: 34.62 kB / 0.5638 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3152, allocations: 4 kB / 0.5638 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001314/0.3154, allocations: 33.7 kB / 0.5638 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.3154, allocations: 55.41 kB / 0.5639 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.624e-05/0.3155, allocations: 89.86 kB / 0.5639 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.3155, allocations: 33.69 kB / 0.564 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.753e-05/0.3156, allocations: 84.09 kB / 0.5641 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.019e-05/0.3156, allocations: 7.953 kB / 0.5641 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.044e-05/0.3156, allocations: 13.72 kB / 0.5641 GB, free: 496 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3157, allocations: 314.8 kB / 0.5644 GB, free: 172 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.246e-05/0.3157, allocations: 12.19 kB / 0.5644 GB, free: 160 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.069e-05/0.3158, allocations: 26.56 kB / 0.5644 GB, free: 124 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.547e-05/0.3158, allocations: 18.58 kB / 0.5644 GB, free: 96 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.3158, allocations: 0 / 0.5644 GB, free: 96 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.567e-05/0.3159, allocations: 53.62 kB / 0.5645 GB, free: 36 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.3159, allocations: 4 kB / 0.5645 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.3159, allocations: 0 / 0.5645 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.3159, allocations: 8.031 kB / 0.5645 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.578e-05/0.316, allocations: 8 kB / 0.5645 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.316, allocations: 0 / 0.5645 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.691e-05/0.316, allocations: 0 / 0.5645 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.064e-06/0.316, allocations: 4 kB / 0.5645 GB, free: 12 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 9.653e-05/0.3161, allocations: 113.8 kB / 0.5646 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.345e-05/0.3161, allocations: 4 kB / 0.5646 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.3162, allocations: 44.84 kB / 0.5647 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.3162, allocations: 3.938 kB / 0.5647 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3162, allocations: 0 / 0.5647 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.3162, allocations: 0 / 0.5647 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.3164, allocations: 128.7 kB / 0.5648 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3164, allocations: 0 / 0.5648 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.3164, allocations: 0 / 0.5648 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.3164, allocations: 0 / 0.5648 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-06/0.3164, allocations: 3.938 kB / 0.5648 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.3164, allocations: 7.938 kB / 0.5648 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3164, allocations: 4 kB / 0.5648 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001073/0.3165, allocations: 139.5 kB / 0.5649 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.987e-06/0.3165, allocations: 7.953 kB / 0.5649 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.987e-06/0.3165, allocations: 0 / 0.5649 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.415e-05/0.3166, allocations: 0 / 0.5649 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.217e-06/0.3166, allocations: 4 kB / 0.5649 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.3166, allocations: 0 / 0.5649 GB, free: 15.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.035e-05/0.3166, allocations: 75.28 kB / 0.565 GB, free: 15.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3166, allocations: 4 kB / 0.565 GB, free: 15.4 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.3169, allocations: 39.92 kB / 0.5651 GB, free: 15.36 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.0005913/0.3175, allocations: 0.7124 MB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.978e-05/0.3176, allocations: 11.94 kB / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3176, allocations: 0 / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.222e-05/0.3176, allocations: 25.7 kB / 0.5658 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002062/0.3178, allocations: 14.94 kB / 0.5658 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00039/0.3182, allocations: 122.6 kB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.676e-05/0.3183, allocations: 55.36 kB / 0.566 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.974e-05/0.3183, allocations: 8.281 kB / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.513e-05/0.3183, allocations: 7.438 kB / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3183, allocations: 0 / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/0.3442, allocations: 2.361 MB / 0.5683 GB, free: 12.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.28, allocations: 7.359 kB / 0.5683 GB, free: 12.08 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: 14.134882417973131]