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.00122/0.00122, allocations: 117 kB / 18.49 MB, free: 4.566 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.001267/0.001267, allocations: 216.7 kB / 21.46 MB, free: 1.613 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.403/1.403, allocations: 230.4 MB / 254.7 MB, free: 15.19 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.2154/0.2154, allocations: 46.91 MB / 357.7 MB, free: 10.22 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002142/0.002142, allocations: 71.89 kB / 0.4916 GB, free: 7.789 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1232, allocations: 66.05 MB / 0.5561 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001526/0.1247, allocations: 496.9 kB / 0.5566 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00192/0.1267, allocations: 1.419 MB / 0.558 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.458e-05/0.1267, allocations: 0 / 0.558 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.256e-05/0.1267, allocations: 0 / 0.558 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.901e-05/0.1267, allocations: 0 / 0.558 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006852/0.1274, allocations: 220.7 kB / 0.5582 GB, free: 3.469 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.476e-05/0.1275, allocations: 8 kB / 0.5582 GB, free: 3.461 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.835e-05/0.1275, allocations: 0 / 0.5582 GB, free: 3.461 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.288e-05/0.1275, allocations: 7.984 kB / 0.5582 GB, free: 3.453 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.796e-05/0.1276, allocations: 7.984 kB / 0.5582 GB, free: 3.445 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.1276, allocations: 0 / 0.5582 GB, free: 3.445 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004554/0.1281, allocations: 283.6 kB / 0.5585 GB, free: 3.168 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.108e-05/0.1281, allocations: 3.938 kB / 0.5585 GB, free: 3.164 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.857e-05/0.1281, allocations: 4 kB / 0.5585 GB, free: 3.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.1283, allocations: 143.6 kB / 0.5586 GB, free: 3.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1283, allocations: 0 / 0.5586 GB, free: 3.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1283, allocations: 0 / 0.5586 GB, free: 3.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1283, allocations: 0 / 0.5586 GB, free: 3.02 MB / 414.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.000423/0.1287, allocations: 335.4 kB / 0.559 GB, free: 2.645 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1288, allocations: 8.031 kB / 0.559 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.418e-05/0.1288, allocations: 4.188 kB / 0.559 GB, free: 2.633 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.288e-05/0.1288, allocations: 34.75 kB / 0.559 GB, free: 2.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.712e-05/0.1288, allocations: 12.83 kB / 0.559 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.129, allocations: 160.4 kB / 0.5592 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.69e-06/0.129, allocations: 384 / 0.5592 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.129, allocations: 4.312 kB / 0.5592 GB, free: 2.379 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.1291, allocations: 49.56 kB / 0.5592 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.1291, allocations: 4 kB / 0.5592 GB, free: 2.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.106e-06/0.1291, allocations: 0 / 0.5592 GB, free: 2.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1291, allocations: 0 / 0.5592 GB, free: 2.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.543e-05/0.1292, allocations: 7.984 kB / 0.5592 GB, free: 2.312 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003553/0.1295, allocations: 240.9 kB / 0.5595 GB, free: 2.027 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.207e-05/0.1296, allocations: 18.58 kB / 0.5595 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.712e-05/0.1296, allocations: 4.859 kB / 0.5595 GB, free: 1.992 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.1296, allocations: 11.97 kB / 0.5595 GB, free: 1.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.1296, allocations: 30.56 kB / 0.5595 GB, free: 1.941 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1296, allocations: 0 / 0.5595 GB, free: 1.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001487/0.1298, allocations: 37.77 kB / 0.5596 GB, free: 1.898 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.1298, allocations: 51.41 kB / 0.5596 GB, free: 1.836 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.476e-05/0.1299, allocations: 97.8 kB / 0.5597 GB, free: 1.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.1299, allocations: 29.69 kB / 0.5597 GB, free: 1.695 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.645e-05/0.13, allocations: 88.34 kB / 0.5598 GB, free: 1.605 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.949e-06/0.13, allocations: 7.953 kB / 0.5598 GB, free: 1.598 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.13, allocations: 13.72 kB / 0.5598 GB, free: 1.578 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1302, allocations: 314.8 kB / 0.5601 GB, free: 1.262 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.151e-05/0.1302, allocations: 4 kB / 0.5601 GB, free: 1.258 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.341e-05/0.1302, allocations: 34.48 kB / 0.5602 GB, free: 1.215 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.905e-05/0.1302, allocations: 22.58 kB / 0.5602 GB, free: 1.184 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1302, allocations: 0 / 0.5602 GB, free: 1.184 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.928e-05/0.1303, allocations: 53.62 kB / 0.5602 GB, free: 1.125 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.1303, allocations: 4 kB / 0.5603 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1303, allocations: 0 / 0.5603 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.1304, allocations: 0 / 0.5603 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.764e-05/0.1304, allocations: 11.94 kB / 0.5603 GB, free: 1.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.1304, allocations: 4.094 kB / 0.5603 GB, free: 1.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.49e-05/0.1304, allocations: 0 / 0.5603 GB, free: 1.105 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.1304, allocations: 4 kB / 0.5603 GB, free: 1.102 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 8.583e-05/0.1305, allocations: 113.8 kB / 0.5604 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.171e-05/0.1306, allocations: 3.938 kB / 0.5604 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.1307, allocations: 40.81 kB / 0.5604 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1307, allocations: 8.031 kB / 0.5604 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1307, allocations: 0 / 0.5604 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1307, allocations: 0 / 0.5604 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.1308, allocations: 157.5 kB / 0.5606 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1309, allocations: 4 kB / 0.5606 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1309, allocations: 0 / 0.5606 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.1309, allocations: 0 / 0.5606 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1309, allocations: 7.938 kB / 0.5606 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1309, allocations: 0 / 0.5606 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1309, allocations: 0 / 0.5606 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.131, allocations: 139.5 kB / 0.5607 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.382e-05/0.131, allocations: 77.11 kB / 0.5608 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.131, allocations: 4 kB / 0.5608 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.223e-05/0.1311, allocations: 0 / 0.5608 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.523e-05/0.1311, allocations: 0 / 0.5608 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.1311, allocations: 0 / 0.5608 GB, free: 472 kB / 414.1 MB Notification: Performance of sorting global known variables: time 4.401e-05/0.1312, allocations: 83.27 kB / 0.5609 GB, free: 388 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1312, allocations: 4.125 kB / 0.5609 GB, free: 384 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002898/0.1314, allocations: 35.94 kB / 0.5609 GB, free: 348 kB / 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.0006391/0.1321, allocations: 0.7123 MB / 0.5616 GB, free: 15.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 9.258e-05/0.1322, allocations: 11.94 kB / 0.5616 GB, free: 15.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1322, allocations: 4.219 kB / 0.5616 GB, free: 15.58 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.721e-05/0.1322, allocations: 29.69 kB / 0.5617 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.1324, allocations: 8.859 kB / 0.5617 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004413/0.1329, allocations: 126.6 kB / 0.5618 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.1332, allocations: 0.669 MB / 0.5624 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.62e-05/0.1332, allocations: 4 kB / 0.5624 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.791e-05/0.1332, allocations: 7.438 kB / 0.5625 GB, free: 14.67 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1332, allocations: 4.062 kB / 0.5625 GB, free: 14.67 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01671/0.15, allocations: 1.88 MB / 0.5643 GB, free: 12.88 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.072/8.222, allocations: 11.98 kB / 0.5643 GB, free: 12.87 MB / 430.1 MB " [Timeout remaining time 652] (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: 11.065930290031247]