Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.001838/0.001838, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.002214/0.002214, allocations: 212.3 kB / 23.74 MB, free: 4.66 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.468/1.468, allocations: 230.5 MB / 257.4 MB, free: 8 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.2266/0.2266, allocations: 46.92 MB / 360.8 MB, free: 4.18 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.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003716/0.003716, allocations: 75.88 kB / 0.4962 GB, free: 7.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3319, allocations: 66.09 MB / 0.5607 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001757/0.3336, allocations: 495.4 kB / 0.5612 GB, free: 3.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.3356, allocations: 1.42 MB / 0.5626 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.127e-05/0.3356, allocations: 0 / 0.5626 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.311e-05/0.3356, allocations: 4 kB / 0.5626 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.629e-05/0.3356, allocations: 0 / 0.5626 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007004/0.3363, allocations: 219.3 kB / 0.5628 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.141e-05/0.3364, allocations: 7.984 kB / 0.5628 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.234e-05/0.3364, allocations: 0 / 0.5628 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.322e-05/0.3365, allocations: 8 kB / 0.5628 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.302e-05/0.3365, allocations: 7.922 kB / 0.5628 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.199e-05/0.3365, allocations: 0 / 0.5628 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004698/0.337, allocations: 279.6 kB / 0.5631 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.473e-05/0.337, allocations: 7.922 kB / 0.5631 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.735e-05/0.337, allocations: 4 kB / 0.5631 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.3372, allocations: 145.5 kB / 0.5632 GB, free: 1.711 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3372, allocations: 0 / 0.5632 GB, free: 1.711 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3372, allocations: 0 / 0.5632 GB, free: 1.711 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.3373, allocations: 0 / 0.5632 GB, free: 1.711 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.0003712/0.3376, allocations: 258.3 kB / 0.5635 GB, free: 1.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3377, allocations: 8.031 kB / 0.5635 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.316e-05/0.3377, allocations: 30.75 kB / 0.5635 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.277e-05/0.3377, allocations: 8.891 kB / 0.5635 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.116e-05/0.3378, allocations: 106.5 kB / 0.5636 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.3378, allocations: 8.312 kB / 0.5636 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.183e-06/0.3379, allocations: 384 / 0.5636 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.338, allocations: 45.77 kB / 0.5637 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.338, allocations: 0 / 0.5637 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.338, allocations: 0 / 0.5637 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.338, allocations: 3.984 kB / 0.5637 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.028e-05/0.338, allocations: 4 kB / 0.5637 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003849/0.3384, allocations: 215.9 kB / 0.5639 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.707e-05/0.3385, allocations: 30.55 kB / 0.5639 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.798e-05/0.3385, allocations: 4.859 kB / 0.5639 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.811e-06/0.3385, allocations: 0 / 0.5639 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.3385, allocations: 30.56 kB / 0.5639 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.3385, allocations: 4.062 kB / 0.564 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001433/0.3387, allocations: 33.7 kB / 0.564 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.3387, allocations: 51.53 kB / 0.564 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.757e-05/0.3388, allocations: 101.8 kB / 0.5641 GB, free: 0.625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.3388, allocations: 25.7 kB / 0.5642 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.328e-05/0.3389, allocations: 88.09 kB / 0.5642 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.562e-06/0.3389, allocations: 3.953 kB / 0.5642 GB, free: 0.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.696e-05/0.3389, allocations: 13.72 kB / 0.5643 GB, free: 492 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3391, allocations: 322.7 kB / 0.5646 GB, free: 160 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.459e-05/0.3391, allocations: 7.984 kB / 0.5646 GB, free: 152 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.904e-05/0.3391, allocations: 26.69 kB / 0.5646 GB, free: 116 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.399e-05/0.3391, allocations: 18.58 kB / 0.5646 GB, free: 88 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3391, allocations: 0 / 0.5646 GB, free: 88 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.412e-05/0.3392, allocations: 53.62 kB / 0.5647 GB, free: 28 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.3392, allocations: 10.44 kB / 0.5647 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.3392, allocations: 3.938 kB / 0.5647 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.3392, allocations: 7.938 kB / 0.5647 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.22e-05/0.3393, allocations: 4 kB / 0.5647 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.3393, allocations: 3.984 kB / 0.5647 GB, free: 0 / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/0.3393, allocations: 0 / 0.5647 GB, free: 0 / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.3393, allocations: 4.047 kB / 0.5647 GB, free: 15.99 MB / 414.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 7.88e-05/0.3394, allocations: 118.8 kB / 0.5648 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.3394, allocations: 4 kB / 0.5648 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.3395, allocations: 40.8 kB / 0.5649 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.3396, allocations: 7.938 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.3396, allocations: 0 / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.3396, allocations: 0 / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.3397, allocations: 128.7 kB / 0.565 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.373e-06/0.3397, allocations: 4 kB / 0.565 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3397, allocations: 0 / 0.565 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.3397, allocations: 0 / 0.565 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.3397, allocations: 4.031 kB / 0.565 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.3397, allocations: 0 / 0.565 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3397, allocations: 0 / 0.565 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001071/0.3398, allocations: 135.5 kB / 0.5651 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.719e-06/0.3398, allocations: 8 kB / 0.5651 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.418e-06/0.3399, allocations: 0 / 0.5651 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.447e-05/0.3399, allocations: 0 / 0.5651 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.191e-05/0.3399, allocations: 4.031 kB / 0.5651 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.3399, allocations: 4 kB / 0.5651 GB, free: 15.47 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.944e-05/0.34, allocations: 79.27 kB / 0.5652 GB, free: 15.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.34, allocations: 0 / 0.5652 GB, free: 15.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.3403, allocations: 47.88 kB / 0.5653 GB, free: 15.34 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.0005521/0.3408, allocations: 0.7046 MB / 0.5659 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.8e-05/0.3409, allocations: 15.92 kB / 0.566 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3409, allocations: 0 / 0.566 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.931e-05/0.3409, allocations: 25.7 kB / 0.566 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.3411, allocations: 8 kB / 0.566 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003753/0.3415, allocations: 126.5 kB / 0.5661 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.3418, allocations: 0.6731 MB / 0.5668 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.907e-05/0.3418, allocations: 4 kB / 0.5668 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.516e-05/0.3419, allocations: 15.42 kB / 0.5668 GB, free: 13.67 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3419, allocations: 0 / 0.5668 GB, free: 13.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02701/0.3689, allocations: 1.961 MB / 0.5687 GB, free: 11.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.21, allocations: 8 kB / 0.5687 GB, free: 11.81 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.125478375935927]