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: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 102.6 kB / 16.27 MB, free: 6.301 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.001203/0.001203, allocations: 191 kB / 17.19 MB, free: 5.93 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.374/1.374, allocations: 205.1 MB / 223.1 MB, free: 12.27 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.205/0.205, allocations: 43.52 MB / 313.9 MB, free: 0.5156 MB / 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.001523/0.001523, allocations: 71.34 kB / 382.7 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.09087, allocations: 57.8 MB / 440.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001669/0.09258, allocations: 0.5341 MB / 441.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006159/0.09322, allocations: 407.3 kB / 441.5 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.904e-05/0.09326, allocations: 0 / 441.5 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.291e-05/0.0933, allocations: 3.938 kB / 441.5 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.24e-05/0.09334, allocations: 3.938 kB / 441.5 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004551/0.0938, allocations: 139.8 kB / 441.6 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.222e-05/0.09386, allocations: 27.92 kB / 441.6 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.833e-05/0.09391, allocations: 4 kB / 441.6 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.289e-05/0.09394, allocations: 15.91 kB / 441.6 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.527e-05/0.094, allocations: 15.92 kB / 441.7 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.09402, allocations: 7.938 kB / 441.7 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000224/0.09425, allocations: 155.8 kB / 441.8 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.221e-05/0.09427, allocations: 7.984 kB / 441.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.397e-05/0.0943, allocations: 15.88 kB / 441.8 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.09448, allocations: 127.8 kB / 442 MB, free: 5.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.09449, allocations: 0 / 442 MB, free: 5.449 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.0945, allocations: 0 / 442 MB, free: 5.449 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.0945, allocations: 0 / 442 MB, free: 5.449 MB / 318.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.0003156/0.09482, allocations: 375.2 kB / 442.3 MB, free: 5.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.09486, allocations: 8.031 kB / 442.3 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.224e-05/0.0949, allocations: 4.938 kB / 442.4 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.276e-05/0.09498, allocations: 164.3 kB / 442.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.095, allocations: 8.312 kB / 442.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.413e-05/0.09503, allocations: 12.38 kB / 442.5 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.09513, allocations: 54.23 kB / 442.6 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.09515, allocations: 3.938 kB / 442.6 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.09516, allocations: 0 / 442.6 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.09517, allocations: 3.938 kB / 442.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.461e-05/0.09523, allocations: 23.98 kB / 442.6 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001228/0.09536, allocations: 177.6 kB / 442.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001783/0.09555, allocations: 46.56 kB / 442.8 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.089e-05/0.0956, allocations: 37.06 kB / 442.9 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002321/0.09584, allocations: 109.1 kB / 443 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.178e-05/0.09586, allocations: 34.56 kB / 443 MB, free: 4.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.09586, allocations: 0 / 443 MB, free: 4.23 MB / 318.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.1428/0.2387, allocations: 6.388 MB / 449.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.2388, allocations: 59.41 kB / 449.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.748e-05/0.2389, allocations: 97.84 kB / 449.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.502e-05/0.239, allocations: 33.7 kB / 449.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.058e-05/0.239, allocations: 80.14 kB / 449.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.803e-05/0.2391, allocations: 63.05 kB / 449.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.2393, allocations: 89.59 kB / 449.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.2394, allocations: 322.8 kB / 450.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005679/0.24, allocations: 227.8 kB / 450.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005755/0.2406, allocations: 231.8 kB / 450.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002245/0.2429, allocations: 0.5543 MB / 451.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.2429, allocations: 4 kB / 451.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001863/0.2448, allocations: 0.6064 MB / 451.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.2448, allocations: 12 kB / 451.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.2448, allocations: 0 / 451.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.2449, allocations: 256 / 451.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006595/0.2455, allocations: 107.8 kB / 451.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.2455, allocations: 4 kB / 451.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004358/0.246, allocations: 19.97 kB / 451.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.436e-05/0.2461, allocations: 39.88 kB / 451.9 MB, free: 11.23 MB / 334.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.0001602/0.2462, allocations: 125.7 kB / 452 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.413e-05/0.2463, allocations: 11.89 kB / 452.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002202/0.2485, allocations: 0.7312 MB / 452.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.2485, allocations: 7.984 kB / 452.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2485, allocations: 4 kB / 452.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.2486, allocations: 0 / 452.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004047/0.2526, allocations: 1.16 MB / 454 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.2526, allocations: 4 kB / 454 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005545/0.2532, allocations: 99.8 kB / 454.1 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.2532, allocations: 4 kB / 454.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.2533, allocations: 27.94 kB / 454.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.2533, allocations: 4 kB / 454.1 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2533, allocations: 4 kB / 454.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.2549, allocations: 0.5783 MB / 454.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.439e-05/0.255, allocations: 89.47 kB / 454.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.072e-05/0.2551, allocations: 11.94 kB / 454.8 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003909/0.2555, allocations: 23.97 kB / 454.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.546e-05/0.2555, allocations: 11.98 kB / 454.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.2555, allocations: 31.95 kB / 454.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5e-05/0.2556, allocations: 91.2 kB / 454.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2556, allocations: 0 / 454.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001699/0.2573, allocations: 0.6522 MB / 455.6 MB, free: 7.422 MB / 334.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.003396/0.2607, allocations: 295 kB / 455.9 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.262, allocations: 451.6 kB / 456.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.2621, allocations: 0 / 456.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005151/0.2626, allocations: 203.7 kB / 456.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.2629, allocations: 16.38 kB / 456.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.2652, allocations: 0.5254 MB / 457.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.2655, allocations: 0.6926 MB / 457.7 MB, free: 5.176 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005403/0.266, allocations: 133.1 kB / 457.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002815/0.2663, allocations: 83.3 kB / 458 MB, free: 4.965 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2663, allocations: 0 / 458 MB, free: 4.965 MB / 334.1 MB Notification: Performance of Templates: time 0.0726/0.3389, allocations: 57.39 MB / 0.5033 GB, free: 11.38 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins/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