Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 117.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 190.9 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 249.8 MB, free: 3.754 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2261/0.2261, allocations: 44.91 MB / 349.6 MB, free: 1.773 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 67.09 kB / 491.8 MB, free: 30.29 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1258, allocations: 64.26 MB / 0.543 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001784/0.1276, allocations: 0.5437 MB / 0.5435 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000948/0.1285, allocations: 415.1 kB / 0.5439 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.087e-05/0.1286, allocations: 0 / 0.5439 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.459e-05/0.1286, allocations: 3.938 kB / 0.5439 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.51e-05/0.1286, allocations: 0 / 0.5439 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005664/0.1292, allocations: 139.8 kB / 0.5441 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.555e-05/0.1293, allocations: 19.98 kB / 0.5441 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.116e-05/0.1293, allocations: 11.94 kB / 0.5441 GB, free: 3.016 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.967e-05/0.1294, allocations: 11.98 kB / 0.5441 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.312e-05/0.1294, allocations: 23.84 kB / 0.5441 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.1295, allocations: 4 kB / 0.5441 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003092/0.1298, allocations: 159.8 kB / 0.5443 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.782e-05/0.1298, allocations: 7.984 kB / 0.5443 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.768e-05/0.1298, allocations: 15.86 kB / 0.5443 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002373/0.1301, allocations: 127.6 kB / 0.5444 GB, free: 2.672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1301, allocations: 0 / 0.5444 GB, free: 2.672 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1301, allocations: 0 / 0.5444 GB, free: 2.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.1301, allocations: 0 / 0.5444 GB, free: 2.672 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.0005484/0.1306, allocations: 367.2 kB / 0.5448 GB, free: 2.266 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.1307, allocations: 12.02 kB / 0.5448 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.789e-05/0.1307, allocations: 34.75 kB / 0.5448 GB, free: 2.211 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.895e-05/0.1307, allocations: 4.891 kB / 0.5448 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002007/0.1309, allocations: 172.3 kB / 0.545 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.131, allocations: 4.375 kB / 0.545 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.131, allocations: 4.375 kB / 0.545 GB, free: 1.992 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.1311, allocations: 61.92 kB / 0.5451 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.1311, allocations: 7.953 kB / 0.5451 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.1311, allocations: 4 kB / 0.5451 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1312, allocations: 0 / 0.5451 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.404e-05/0.1312, allocations: 31.91 kB / 0.5451 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002063/0.1314, allocations: 169.7 kB / 0.5453 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.1316, allocations: 46.56 kB / 0.5453 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.188e-05/0.1317, allocations: 28.84 kB / 0.5453 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002679/0.132, allocations: 109.1 kB / 0.5454 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.132, allocations: 34.78 kB / 0.5455 GB, free: 1.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.132, allocations: 3.938 kB / 0.5455 GB, free: 1.41 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.13/0.262, allocations: 6.372 MB / 0.5517 GB, free: 11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.2621, allocations: 55.34 kB / 0.5517 GB, free: 10.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.951e-05/0.2622, allocations: 109.8 kB / 0.5518 GB, free: 10.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.836e-05/0.2622, allocations: 29.7 kB / 0.5519 GB, free: 10.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.33e-05/0.2623, allocations: 80.14 kB / 0.552 GB, free: 10.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9e-05/0.2623, allocations: 67.42 kB / 0.552 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.2625, allocations: 89.58 kB / 0.5521 GB, free: 10.54 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.2627, allocations: 322.8 kB / 0.5524 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00054/0.2632, allocations: 227.8 kB / 0.5526 GB, free: 9.992 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005437/0.2637, allocations: 237.5 kB / 0.5529 GB, free: 9.762 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002091/0.2658, allocations: 0.5573 MB / 0.5534 GB, free: 9.203 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2658, allocations: 0 / 0.5534 GB, free: 9.203 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001859/0.2677, allocations: 0.6065 MB / 0.554 GB, free: 8.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2677, allocations: 4 kB / 0.554 GB, free: 8.586 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.2677, allocations: 0 / 0.554 GB, free: 8.586 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.2677, allocations: 8 kB / 0.554 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006541/0.2684, allocations: 104.3 kB / 0.5541 GB, free: 8.477 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2684, allocations: 3.938 kB / 0.5541 GB, free: 8.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004319/0.2688, allocations: 27.95 kB / 0.5541 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.913e-05/0.2689, allocations: 27.95 kB / 0.5542 GB, free: 8.418 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.0001593/0.2691, allocations: 125.7 kB / 0.5543 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.643e-05/0.2691, allocations: 15.88 kB / 0.5543 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002112/0.2712, allocations: 0.7265 MB / 0.555 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.2712, allocations: 4 kB / 0.555 GB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2712, allocations: 0 / 0.555 GB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2712, allocations: 0 / 0.555 GB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004053/0.2753, allocations: 1.165 MB / 0.5561 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.2753, allocations: 4 kB / 0.5561 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005444/0.2758, allocations: 104 kB / 0.5562 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.2759, allocations: 4 kB / 0.5563 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.857e-05/0.2759, allocations: 27.95 kB / 0.5563 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.2759, allocations: 4 kB / 0.5563 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2759, allocations: 3.938 kB / 0.5563 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/0.2776, allocations: 0.5744 MB / 0.5568 GB, free: 5.539 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.679e-05/0.2777, allocations: 93.05 kB / 0.5569 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.739e-05/0.2777, allocations: 8 kB / 0.5569 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004101/0.2781, allocations: 19.97 kB / 0.557 GB, free: 5.402 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.221e-05/0.2782, allocations: 23.92 kB / 0.557 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.868e-05/0.2782, allocations: 27.95 kB / 0.557 GB, free: 5.352 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.195e-05/0.2783, allocations: 87.2 kB / 0.5571 GB, free: 5.266 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2783, allocations: 0 / 0.5571 GB, free: 5.266 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001642/0.2799, allocations: 0.6557 MB / 0.5577 GB, free: 4.609 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.004666/0.2846, allocations: 1.298 MB / 0.559 GB, free: 3.262 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.2858, allocations: 442.2 kB / 0.5594 GB, free: 2.832 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.2858, allocations: 3.938 kB / 0.5594 GB, free: 2.828 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005024/0.2863, allocations: 192.1 kB / 0.5596 GB, free: 2.641 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.2865, allocations: 8 kB / 0.5596 GB, free: 2.633 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003107/0.2897, allocations: 0.6314 MB / 0.5602 GB, free: 1.945 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.29, allocations: 0.6926 MB / 0.5609 GB, free: 1.223 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004324/0.2904, allocations: 128.9 kB / 0.561 GB, free: 1.094 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/0.2907, allocations: 95.28 kB / 0.5611 GB, free: 1 MB / 414.1 MB Notification: Performance of SimCode: time 5.62e-07/0.2907, allocations: 0 / 0.5611 GB, free: 1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5432/0.8339, allocations: 58.57 MB / 0.6183 GB, free: 41.47 MB / 462.2 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.444/9.278, allocations: 13.39 kB / 0.6183 GB, free: 41.47 MB / 462.2 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 12.300438017118722]