Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.001825/0.001825, allocations: 109 kB / 20.48 MB, free: 1.324 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.002373/0.002373, allocations: 216.6 kB / 23.79 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.462/1.462, allocations: 207.6 MB / 234.5 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2147/0.2147, allocations: 44.25 MB / 331.1 MB, free: 9.516 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002414/0.002414, allocations: 71.03 kB / 468.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1235, allocations: 61.05 MB / 0.5169 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001842/0.1253, allocations: 0.5493 MB / 0.5174 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008069/0.1261, allocations: 407.1 kB / 0.5178 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.579e-05/0.1261, allocations: 0 / 0.5178 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.87e-05/0.1262, allocations: 3.938 kB / 0.5178 GB, free: 6.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.876e-05/0.1262, allocations: 3.938 kB / 0.5178 GB, free: 6.387 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005008/0.1267, allocations: 143.5 kB / 0.518 GB, free: 6.246 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.778e-05/0.1268, allocations: 31.95 kB / 0.518 GB, free: 6.215 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.338e-05/0.1268, allocations: 4 kB / 0.518 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.155e-05/0.1268, allocations: 7.938 kB / 0.518 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.922e-05/0.1269, allocations: 15.92 kB / 0.518 GB, free: 6.188 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.002e-05/0.1269, allocations: 4 kB / 0.518 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002968/0.1272, allocations: 167.8 kB / 0.5182 GB, free: 6.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.301e-05/0.1272, allocations: 4 kB / 0.5182 GB, free: 6.016 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.977e-05/0.1272, allocations: 23.84 kB / 0.5182 GB, free: 5.992 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000229/0.1275, allocations: 119.7 kB / 0.5183 GB, free: 5.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1275, allocations: 4 kB / 0.5183 GB, free: 5.871 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1275, allocations: 0 / 0.5183 GB, free: 5.871 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.1275, allocations: 0 / 0.5183 GB, free: 5.871 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004579/0.1279, allocations: 293.9 kB / 0.5186 GB, free: 5.555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.128, allocations: 12.03 kB / 0.5186 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.284e-05/0.128, allocations: 192 / 0.5186 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.496e-05/0.128, allocations: 42.62 kB / 0.5187 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.812e-05/0.128, allocations: 4.938 kB / 0.5187 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.1282, allocations: 122.4 kB / 0.5188 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.1282, allocations: 384 / 0.5188 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.719e-05/0.1282, allocations: 8.375 kB / 0.5188 GB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/0.1283, allocations: 53.81 kB / 0.5189 GB, free: 5.277 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.1283, allocations: 7.922 kB / 0.5189 GB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.1284, allocations: 3.984 kB / 0.5189 GB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.1284, allocations: 4 kB / 0.5189 GB, free: 5.262 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.872e-05/0.1284, allocations: 23.98 kB / 0.5189 GB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001853/0.1286, allocations: 140.7 kB / 0.519 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.1288, allocations: 58.83 kB / 0.5191 GB, free: 4.992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.189e-05/0.1289, allocations: 24.8 kB / 0.5191 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002382/0.1291, allocations: 31.95 kB / 0.5191 GB, free: 4.934 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.1292, allocations: 38.5 kB / 0.5192 GB, free: 4.887 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.1292, allocations: 0 / 0.5192 GB, free: 4.887 MB / 398.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.1371/0.2663, allocations: 6.381 MB / 0.5254 GB, free: 14.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.2663, allocations: 55.41 kB / 0.5255 GB, free: 14.4 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.612e-05/0.2664, allocations: 97.86 kB / 0.5256 GB, free: 14.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.608e-05/0.2665, allocations: 25.7 kB / 0.5256 GB, free: 14.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.782e-05/0.2665, allocations: 88.14 kB / 0.5257 GB, free: 14.17 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.2666, allocations: 67.42 kB / 0.5257 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.2669, allocations: 82.06 kB / 0.5258 GB, free: 14.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.267, allocations: 330.8 kB / 0.5261 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006037/0.2676, allocations: 223.8 kB / 0.5263 GB, free: 13.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006047/0.2682, allocations: 231.8 kB / 0.5266 GB, free: 13.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002323/0.2706, allocations: 0.561 MB / 0.5271 GB, free: 12.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2706, allocations: 3.938 kB / 0.5271 GB, free: 12.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00201/0.2726, allocations: 0.6105 MB / 0.5277 GB, free: 12.06 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.2726, allocations: 4 kB / 0.5277 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2726, allocations: 4 kB / 0.5277 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.356e-05/0.2726, allocations: 0 / 0.5277 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006986/0.2733, allocations: 103.8 kB / 0.5278 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.2733, allocations: 3.938 kB / 0.5278 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004459/0.2738, allocations: 27.95 kB / 0.5278 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.819e-05/0.2739, allocations: 39.88 kB / 0.5279 GB, free: 11.88 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (19): * Single equations (assignments): 19 * 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 0.0001759/0.274, allocations: 117.8 kB / 0.528 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.158e-05/0.2741, allocations: 7.953 kB / 0.528 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002267/0.2764, allocations: 0.7315 MB / 0.5287 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.2764, allocations: 4 kB / 0.5287 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.2764, allocations: 4 kB / 0.5287 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.2764, allocations: 3.938 kB / 0.5287 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004272/0.2807, allocations: 1.137 MB / 0.5298 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.2807, allocations: 4 kB / 0.5298 GB, free: 9.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005537/0.2812, allocations: 99.78 kB / 0.5299 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.2812, allocations: 4 kB / 0.5299 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/0.2813, allocations: 27.95 kB / 0.53 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.2813, allocations: 7.938 kB / 0.53 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.2813, allocations: 0 / 0.53 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.2831, allocations: 0.5822 MB / 0.5305 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.884e-05/0.2831, allocations: 11.94 kB / 0.5305 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.704e-05/0.2832, allocations: 4 kB / 0.5306 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004063/0.2836, allocations: 23.97 kB / 0.5306 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.2836, allocations: 23.97 kB / 0.5306 GB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.809e-05/0.2837, allocations: 31.89 kB / 0.5306 GB, free: 8.945 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.991e-05/0.2837, allocations: 79.28 kB / 0.5307 GB, free: 8.867 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2837, allocations: 0 / 0.5307 GB, free: 8.867 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001814/0.2855, allocations: 0.648 MB / 0.5313 GB, free: 8.219 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * 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 Backend phase and start with SimCode phase: time 0.0055/0.291, allocations: 1.306 MB / 0.5326 GB, free: 6.863 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.2923, allocations: 435.5 kB / 0.533 GB, free: 6.438 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/0.2923, allocations: 4 kB / 0.533 GB, free: 6.434 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000586/0.2929, allocations: 203.7 kB / 0.5332 GB, free: 6.234 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.2932, allocations: 15.38 kB / 0.5332 GB, free: 6.223 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.2968, allocations: 0.6128 MB / 0.5338 GB, free: 5.551 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.2971, allocations: 0.6887 MB / 0.5345 GB, free: 4.832 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004155/0.2975, allocations: 125 kB / 0.5346 GB, free: 4.707 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003553/0.2979, allocations: 103.2 kB / 0.5347 GB, free: 4.605 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2979, allocations: 0 / 0.5347 GB, free: 4.605 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2779/0.5758, allocations: 58.93 MB / 0.5923 GB, free: 10.51 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.25, allocations: 3.938 kB / 0.5923 GB, free: 10.5 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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: 15.322895012970548]