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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.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_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001965/0.001965, allocations: 110.1 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002093/0.002093, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2131/0.2131, allocations: 43.53 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002178, allocations: 75.89 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1042, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001671/0.1059, allocations: 0.5454 MB / 499.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007783/0.1067, allocations: 405.5 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.779e-05/0.1067, allocations: 4 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.347e-05/0.1068, allocations: 0 / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.767e-05/0.1068, allocations: 3.938 kB / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005306/0.1073, allocations: 131.6 kB / 0.4884 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.129e-05/0.1074, allocations: 27.92 kB / 0.4885 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.765e-05/0.1075, allocations: 4 kB / 0.4885 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.59e-05/0.1075, allocations: 15.92 kB / 0.4885 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.766e-05/0.1076, allocations: 19.91 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.1076, allocations: 4 kB / 0.4885 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002849/0.1079, allocations: 159.8 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.1079, allocations: 7.875 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.814e-05/0.1079, allocations: 15.92 kB / 0.4887 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002464/0.1082, allocations: 131.6 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1082, allocations: 0 / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1082, allocations: 0 / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1082, allocations: 4 kB / 0.4888 GB, free: 10.84 MB / 382.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.0004738/0.1087, allocations: 375 kB / 0.4892 GB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.1088, allocations: 11.89 kB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.889e-05/0.1088, allocations: 34.75 kB / 0.4892 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.698e-05/0.1088, allocations: 4.938 kB / 0.4892 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.109, allocations: 168.3 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.109, allocations: 4.375 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.799e-05/0.109, allocations: 4.375 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.1092, allocations: 65.86 kB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.1092, allocations: 4 kB / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-06/0.1092, allocations: 0 / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.1092, allocations: 4 kB / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.733e-05/0.1093, allocations: 23.98 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002041/0.1095, allocations: 177.5 kB / 0.4897 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.1097, allocations: 62.58 kB / 0.4897 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.94e-05/0.1098, allocations: 24.84 kB / 0.4897 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002644/0.1101, allocations: 109.1 kB / 0.4898 GB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.1101, allocations: 38.5 kB / 0.4899 GB, free: 9.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.293e-06/0.1101, allocations: 0 / 0.4899 GB, free: 9.562 MB / 382.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.1352/0.2453, allocations: 6.387 MB / 0.4961 GB, free: 3.133 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.2454, allocations: 51.41 kB / 0.4962 GB, free: 3.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.527e-05/0.2455, allocations: 105.8 kB / 0.4963 GB, free: 2.957 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.529e-05/0.2456, allocations: 29.7 kB / 0.4963 GB, free: 2.922 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.298e-05/0.2456, allocations: 80.14 kB / 0.4964 GB, free: 2.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.435e-05/0.2457, allocations: 71.42 kB / 0.4964 GB, free: 2.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.2459, allocations: 89.53 kB / 0.4965 GB, free: 2.676 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2461, allocations: 326.8 kB / 0.4968 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005698/0.2466, allocations: 231.8 kB / 0.4971 GB, free: 2.121 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005658/0.2472, allocations: 227.8 kB / 0.4973 GB, free: 1.898 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002074/0.2493, allocations: 0.5552 MB / 0.4978 GB, free: 1.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2493, allocations: 0 / 0.4978 GB, free: 1.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001851/0.2512, allocations: 0.6141 MB / 0.4984 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.2512, allocations: 4 kB / 0.4984 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2512, allocations: 0 / 0.4984 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.2512, allocations: 4 kB / 0.4984 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000653/0.2519, allocations: 111.8 kB / 0.4985 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.2519, allocations: 3.938 kB / 0.4985 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004169/0.2523, allocations: 23.95 kB / 0.4986 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.386e-05/0.2524, allocations: 31.95 kB / 0.4986 GB, free: 0.5469 MB / 382.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.0001584/0.2526, allocations: 125.7 kB / 0.4987 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.409e-05/0.2526, allocations: 15.89 kB / 0.4987 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002222/0.2549, allocations: 0.724 MB / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.2549, allocations: 0 / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2549, allocations: 4 kB / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.2549, allocations: 0 / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00396/0.2589, allocations: 1.165 MB / 0.5006 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.2589, allocations: 0 / 0.5006 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005598/0.2595, allocations: 112 kB / 0.5007 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/0.2595, allocations: 0 / 0.5007 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.954e-05/0.2595, allocations: 27.95 kB / 0.5007 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.2596, allocations: 4.25 kB / 0.5007 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.2596, allocations: 4 kB / 0.5007 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.2613, allocations: 0.5743 MB / 0.5013 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-05/0.2613, allocations: 97.05 kB / 0.5014 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.971e-05/0.2614, allocations: 0 / 0.5014 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/0.2618, allocations: 27.97 kB / 0.5014 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.289e-05/0.2619, allocations: 19.91 kB / 0.5014 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-05/0.2619, allocations: 31.95 kB / 0.5014 GB, free: 13.47 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.64e-05/0.262, allocations: 83.22 kB / 0.5015 GB, free: 13.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.262, allocations: 0 / 0.5015 GB, free: 13.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001707/0.2637, allocations: 0.6519 MB / 0.5022 GB, free: 12.74 MB / 398.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.005371/0.2691, allocations: 1.302 MB / 0.5034 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.2704, allocations: 451.5 kB / 0.5039 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.2704, allocations: 0 / 0.5039 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005559/0.271, allocations: 204.1 kB / 0.5041 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.2713, allocations: 19.27 kB / 0.5041 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003326/0.2746, allocations: 0.6163 MB / 0.5047 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.275, allocations: 0.6926 MB / 0.5053 GB, free: 9.336 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000446/0.2754, allocations: 128.9 kB / 0.5055 GB, free: 9.207 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003338/0.2758, allocations: 95.28 kB / 0.5056 GB, free: 9.113 MB / 398.1 MB Notification: Performance of SimCode: time 8.72e-07/0.2758, allocations: 3.938 kB / 0.5056 GB, free: 9.109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3053/0.5811, allocations: 58.57 MB / 0.5628 GB, free: 20.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.156/8.737, allocations: 1.969 kB / 0.5628 GB, free: 20.31 MB / 414.1 MB (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 --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) 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) Reference file matches