Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001845/0.001845, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002339/0.002339, allocations: 218.9 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2282/0.2282, allocations: 46.92 MB / 357.8 MB, free: 10.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 55.91 kB / 0.4916 GB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1329, allocations: 65.99 MB / 0.556 GB, free: 5.844 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001777/0.1347, allocations: 0.5337 MB / 0.5566 GB, free: 5.309 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008607/0.1355, allocations: 427.3 kB / 0.557 GB, free: 4.887 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.197e-05/0.1356, allocations: 0 / 0.557 GB, free: 4.887 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.135e-05/0.1356, allocations: 0 / 0.557 GB, free: 4.887 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.404e-05/0.1356, allocations: 7.938 kB / 0.557 GB, free: 4.879 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005243/0.1361, allocations: 135.5 kB / 0.5571 GB, free: 4.746 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.893e-05/0.1362, allocations: 23.92 kB / 0.5571 GB, free: 4.723 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.306e-05/0.1363, allocations: 4 kB / 0.5571 GB, free: 4.719 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.072e-05/0.1363, allocations: 15.92 kB / 0.5572 GB, free: 4.703 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.077e-05/0.1364, allocations: 15.91 kB / 0.5572 GB, free: 4.688 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.324e-05/0.1364, allocations: 4 kB / 0.5572 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003024/0.1367, allocations: 163.8 kB / 0.5573 GB, free: 4.523 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.257e-05/0.1367, allocations: 7.984 kB / 0.5573 GB, free: 4.516 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.971e-05/0.1367, allocations: 19.86 kB / 0.5574 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002419/0.137, allocations: 123.6 kB / 0.5575 GB, free: 4.375 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.137, allocations: 0 / 0.5575 GB, free: 4.375 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.137, allocations: 0 / 0.5575 GB, free: 4.375 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.137, allocations: 0 / 0.5575 GB, free: 4.375 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004895/0.1375, allocations: 371 kB / 0.5578 GB, free: 3.965 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1375, allocations: 8.031 kB / 0.5578 GB, free: 3.957 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.88e-05/0.1375, allocations: 8.188 kB / 0.5578 GB, free: 3.949 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.545e-05/0.1375, allocations: 42.67 kB / 0.5579 GB, free: 3.898 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.687e-05/0.1376, allocations: 4.938 kB / 0.5579 GB, free: 3.895 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.1377, allocations: 168.3 kB / 0.558 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.1377, allocations: 8.375 kB / 0.5581 GB, free: 3.684 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.1378, allocations: 384 / 0.5581 GB, free: 3.684 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.1379, allocations: 61.8 kB / 0.5581 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1379, allocations: 0 / 0.5581 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.1379, allocations: 0 / 0.5581 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.1379, allocations: 0 / 0.5581 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.053e-05/0.138, allocations: 23.98 kB / 0.5581 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002073/0.1382, allocations: 185.5 kB / 0.5583 GB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.1384, allocations: 50.55 kB / 0.5584 GB, free: 3.305 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.902e-05/0.1385, allocations: 20.84 kB / 0.5584 GB, free: 3.281 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002883/0.1388, allocations: 109.1 kB / 0.5585 GB, free: 3.156 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.1388, allocations: 46.72 kB / 0.5585 GB, free: 3.102 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.1388, allocations: 0 / 0.5585 GB, free: 3.102 MB / 414.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.1403/0.2791, allocations: 6.367 MB / 0.5647 GB, free: 12.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.2792, allocations: 59.34 kB / 0.5648 GB, free: 12.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.91e-05/0.2793, allocations: 105.8 kB / 0.5649 GB, free: 12.51 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.224e-05/0.2793, allocations: 29.7 kB / 0.5649 GB, free: 12.48 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.387e-05/0.2794, allocations: 84.14 kB / 0.565 GB, free: 12.39 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.2795, allocations: 75.36 kB / 0.5651 GB, free: 12.32 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002009/0.2797, allocations: 89.59 kB / 0.5652 GB, free: 12.22 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.2799, allocations: 322.8 kB / 0.5655 GB, free: 11.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005833/0.2804, allocations: 223.8 kB / 0.5657 GB, free: 11.68 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005823/0.281, allocations: 241.1 kB / 0.5659 GB, free: 11.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002217/0.2832, allocations: 0.5482 MB / 0.5665 GB, free: 10.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2832, allocations: 0 / 0.5665 GB, free: 10.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001988/0.2852, allocations: 0.6204 MB / 0.5671 GB, free: 10.27 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.2853, allocations: 8 kB / 0.5671 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.2853, allocations: 3.984 kB / 0.5671 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.2853, allocations: 0 / 0.5671 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006901/0.286, allocations: 103.8 kB / 0.5672 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.286, allocations: 0 / 0.5672 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004391/0.2864, allocations: 27.97 kB / 0.5672 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-05/0.2865, allocations: 35.88 kB / 0.5672 GB, free: 10.09 MB / 430.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.000162/0.2867, allocations: 121.8 kB / 0.5674 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.126e-05/0.2867, allocations: 7.953 kB / 0.5674 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002248/0.289, allocations: 0.7279 MB / 0.5681 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.289, allocations: 4 kB / 0.5681 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.289, allocations: 0 / 0.5681 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.289, allocations: 3.938 kB / 0.5681 GB, free: 9.215 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004197/0.2932, allocations: 1.15 MB / 0.5692 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.303e-06/0.2932, allocations: 11.94 kB / 0.5692 GB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005785/0.2938, allocations: 92.33 kB / 0.5693 GB, free: 7.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.727e-06/0.2938, allocations: 7.984 kB / 0.5693 GB, free: 7.883 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.016e-05/0.2938, allocations: 27.95 kB / 0.5693 GB, free: 7.855 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.2938, allocations: 8.188 kB / 0.5693 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.2939, allocations: 3.938 kB / 0.5693 GB, free: 7.844 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001794/0.2956, allocations: 0.5806 MB / 0.5699 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.049e-05/0.2957, allocations: 92.98 kB / 0.57 GB, free: 7.121 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.379e-05/0.2958, allocations: 4 kB / 0.57 GB, free: 7.117 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/0.2962, allocations: 27.97 kB / 0.57 GB, free: 7.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.976e-05/0.2962, allocations: 23.92 kB / 0.5701 GB, free: 7.066 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.868e-05/0.2963, allocations: 31.89 kB / 0.5701 GB, free: 7.035 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.904e-05/0.2963, allocations: 83.27 kB / 0.5702 GB, free: 6.953 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2963, allocations: 0 / 0.5702 GB, free: 6.953 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001861/0.2982, allocations: 0.6519 MB / 0.5708 GB, free: 6.301 MB / 430.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.00548/0.3037, allocations: 1.302 MB / 0.5721 GB, free: 4.953 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.3049, allocations: 448.8 kB / 0.5725 GB, free: 4.516 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3049, allocations: 0 / 0.5725 GB, free: 4.516 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005783/0.3055, allocations: 187.8 kB / 0.5727 GB, free: 4.332 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.3058, allocations: 15.94 kB / 0.5727 GB, free: 4.316 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003396/0.3092, allocations: 0.6205 MB / 0.5733 GB, free: 3.637 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.3096, allocations: 0.6926 MB / 0.574 GB, free: 2.914 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004178/0.31, allocations: 128.9 kB / 0.5741 GB, free: 2.781 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003702/0.3104, allocations: 99.28 kB / 0.5742 GB, free: 2.684 MB / 430.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3104, allocations: 0 / 0.5742 GB, free: 2.684 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3226/0.633, allocations: 58.62 MB / 0.6314 GB, free: 10.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.804/9.437, allocations: 5.938 kB / 0.6314 GB, free: 10.68 MB / 446.1 MB " [Timeout remaining time 650] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.641253631038126]