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.00126/0.00126, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.001346/0.001346, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.439/1.439, allocations: 230.2 MB / 254.5 MB, free: 15.27 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.2234/0.2234, allocations: 46.9 MB / 357.4 MB, free: 10.49 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.002178/0.002178, allocations: 79.88 kB / 0.4912 GB, free: 8.379 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1251, allocations: 65.99 MB / 0.5557 GB, free: 6.258 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001636/0.1267, allocations: 0.491 MB / 0.5562 GB, free: 5.762 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.1286, allocations: 1.411 MB / 0.5575 GB, free: 4.332 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.396e-05/0.1287, allocations: 0 / 0.5575 GB, free: 4.332 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.645e-05/0.1287, allocations: 7.875 kB / 0.5575 GB, free: 4.324 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.101e-05/0.1287, allocations: 4 kB / 0.5575 GB, free: 4.32 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007164/0.1294, allocations: 217.6 kB / 0.5578 GB, free: 4.109 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.51e-05/0.1295, allocations: 7.938 kB / 0.5578 GB, free: 4.102 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.51e-05/0.1295, allocations: 4 kB / 0.5578 GB, free: 4.098 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.898e-05/0.1295, allocations: 7.984 kB / 0.5578 GB, free: 4.09 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.428e-05/0.1296, allocations: 7.984 kB / 0.5578 GB, free: 4.082 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.628e-06/0.1296, allocations: 0 / 0.5578 GB, free: 4.082 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004349/0.13, allocations: 283.6 kB / 0.5581 GB, free: 3.805 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.294e-05/0.13, allocations: 4 kB / 0.5581 GB, free: 3.801 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.825e-05/0.13, allocations: 3.984 kB / 0.5581 GB, free: 3.797 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002182/0.1303, allocations: 147.6 kB / 0.5582 GB, free: 3.652 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1303, allocations: 0 / 0.5582 GB, free: 3.652 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1303, allocations: 0 / 0.5582 GB, free: 3.652 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1303, allocations: 0 / 0.5582 GB, free: 3.652 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.0004013/0.1307, allocations: 339.3 kB / 0.5585 GB, free: 3.273 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1307, allocations: 12.03 kB / 0.5585 GB, free: 3.262 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.623e-05/0.1307, allocations: 30.75 kB / 0.5586 GB, free: 3.223 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.823e-05/0.1308, allocations: 8.828 kB / 0.5586 GB, free: 3.215 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.1309, allocations: 160.4 kB / 0.5587 GB, free: 3.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.1309, allocations: 8.359 kB / 0.5587 GB, free: 3.012 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.011e-05/0.1309, allocations: 8.375 kB / 0.5587 GB, free: 3.004 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.131, allocations: 37.81 kB / 0.5588 GB, free: 2.961 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.131, allocations: 0 / 0.5588 GB, free: 2.961 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.131, allocations: 0 / 0.5588 GB, free: 2.961 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.131, allocations: 0 / 0.5588 GB, free: 2.961 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.596e-05/0.1311, allocations: 15.98 kB / 0.5588 GB, free: 2.945 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003521/0.1314, allocations: 236.8 kB / 0.559 GB, free: 2.664 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.557e-05/0.1315, allocations: 26.61 kB / 0.559 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.631e-05/0.1315, allocations: 4.859 kB / 0.559 GB, free: 2.621 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.917e-06/0.1315, allocations: 0 / 0.559 GB, free: 2.621 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.1315, allocations: 38.62 kB / 0.5591 GB, free: 2.574 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.1315, allocations: 0 / 0.5591 GB, free: 2.574 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001384/0.1317, allocations: 33.64 kB / 0.5591 GB, free: 2.535 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.1317, allocations: 51.53 kB / 0.5592 GB, free: 2.473 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.909e-05/0.1318, allocations: 105.8 kB / 0.5593 GB, free: 2.359 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.1318, allocations: 25.7 kB / 0.5593 GB, free: 2.328 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.95e-05/0.1318, allocations: 88.03 kB / 0.5594 GB, free: 2.238 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.396e-06/0.1319, allocations: 7.953 kB / 0.5594 GB, free: 2.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-05/0.1319, allocations: 9.719 kB / 0.5594 GB, free: 2.215 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.132, allocations: 322.8 kB / 0.5597 GB, free: 1.891 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.459e-05/0.132, allocations: 3.984 kB / 0.5597 GB, free: 1.887 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.898e-05/0.1321, allocations: 26.64 kB / 0.5597 GB, free: 1.852 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.894e-05/0.1321, allocations: 26.52 kB / 0.5598 GB, free: 1.816 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1321, allocations: 4 kB / 0.5598 GB, free: 1.812 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.634e-05/0.1322, allocations: 49.62 kB / 0.5598 GB, free: 1.758 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1322, allocations: 10.44 kB / 0.5598 GB, free: 1.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1322, allocations: 0 / 0.5598 GB, free: 1.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.1322, allocations: 4 kB / 0.5598 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.62e-05/0.1323, allocations: 4 kB / 0.5598 GB, free: 1.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1323, allocations: 0 / 0.5598 GB, free: 1.742 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.542e-05/0.1323, allocations: 0 / 0.5598 GB, free: 1.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.1323, allocations: 4 kB / 0.5598 GB, free: 1.738 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.704e-05/0.1324, allocations: 109.8 kB / 0.5599 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.1324, allocations: 11.92 kB / 0.5599 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.96e-05/0.1325, allocations: 48.77 kB / 0.56 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1325, allocations: 4 kB / 0.56 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1325, allocations: 0 / 0.56 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.1325, allocations: 0 / 0.56 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001777/0.1327, allocations: 153.6 kB / 0.5601 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1327, allocations: 0 / 0.5601 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1327, allocations: 0 / 0.5601 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.1327, allocations: 0 / 0.5601 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.709e-06/0.1327, allocations: 4.031 kB / 0.5601 GB, free: 1.352 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1327, allocations: 0 / 0.5601 GB, free: 1.352 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1327, allocations: 0 / 0.5601 GB, free: 1.352 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/0.1328, allocations: 139.4 kB / 0.5603 GB, free: 1.199 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-05/0.1328, allocations: 81.11 kB / 0.5604 GB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.1328, allocations: 0 / 0.5604 GB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.643e-05/0.1329, allocations: 96 / 0.5604 GB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.1329, allocations: 8.016 kB / 0.5604 GB, free: 1.094 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.1329, allocations: 4 kB / 0.5604 GB, free: 1.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.943e-05/0.133, allocations: 79.27 kB / 0.5604 GB, free: 1.012 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.133, allocations: 0 / 0.5604 GB, free: 1.012 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002844/0.1332, allocations: 43.94 kB / 0.5605 GB, free: 0.9688 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.0005593/0.1338, allocations: 0.7046 MB / 0.5612 GB, free: 240 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.827e-05/0.1339, allocations: 19.92 kB / 0.5612 GB, free: 220 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1339, allocations: 0 / 0.5612 GB, free: 220 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.778e-05/0.1339, allocations: 29.7 kB / 0.5612 GB, free: 184 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001988/0.1341, allocations: 0 / 0.5612 GB, free: 184 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003729/0.1345, allocations: 126.6 kB / 0.5613 GB, free: 16 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.1348, allocations: 0.6767 MB / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.197e-05/0.1348, allocations: 8.188 kB / 0.562 GB, free: 15.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.132e-05/0.1348, allocations: 7.438 kB / 0.562 GB, free: 15.3 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1348, allocations: 0 / 0.562 GB, free: 15.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02308/0.1579, allocations: 1.873 MB / 0.5638 GB, free: 13.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.772/7.93, allocations: 9.562 kB / 0.5639 GB, free: 13.5 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.7858118978329]