Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001472/0.001472, allocations: 109.8 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001806/0.001806, allocations: 207.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2127/0.2127, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 76.16 kB / 482 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.3891, allocations: 62.43 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001739/0.3909, allocations: 0.544 MB / 0.5322 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008373/0.3918, allocations: 397.3 kB / 0.5326 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.985e-05/0.3918, allocations: 0 / 0.5326 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.435e-05/0.3918, allocations: 3.938 kB / 0.5326 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.241e-05/0.3919, allocations: 5.031 kB / 0.5326 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005029/0.3924, allocations: 139.6 kB / 0.5327 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.094e-05/0.3925, allocations: 24.67 kB / 0.5327 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.126e-05/0.3925, allocations: 1.812 kB / 0.5327 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.679e-05/0.3926, allocations: 13.34 kB / 0.5327 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.27e-05/0.3926, allocations: 21.3 kB / 0.5328 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.221e-05/0.3926, allocations: 1.75 kB / 0.5328 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002869/0.3929, allocations: 164 kB / 0.5329 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.223e-05/0.393, allocations: 2.156 kB / 0.5329 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.922e-05/0.393, allocations: 20.05 kB / 0.5329 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00021/0.3932, allocations: 126.3 kB / 0.533 GB, free: 12.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3932, allocations: 0 / 0.533 GB, free: 12.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3932, allocations: 4 kB / 0.5331 GB, free: 12.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.3932, allocations: 0 / 0.5331 GB, free: 12.57 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.0005021/0.3937, allocations: 358.7 kB / 0.5334 GB, free: 12.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3938, allocations: 9.625 kB / 0.5334 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.584e-05/0.3938, allocations: 7.625 kB / 0.5334 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.394, allocations: 171.6 kB / 0.5336 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.394, allocations: 15.05 kB / 0.5336 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.394, allocations: 3.125 kB / 0.5336 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001236/0.3942, allocations: 54.62 kB / 0.5336 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.3942, allocations: 9.297 kB / 0.5337 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.3942, allocations: 0 / 0.5337 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3942, allocations: 1.375 kB / 0.5337 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.275e-05/0.3943, allocations: 32.42 kB / 0.5337 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001987/0.3945, allocations: 171.1 kB / 0.5338 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.3947, allocations: 60.61 kB / 0.5339 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.079e-05/0.3948, allocations: 29.5 kB / 0.5339 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002836/0.3951, allocations: 105.5 kB / 0.534 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.3951, allocations: 35.94 kB / 0.5341 GB, free: 11.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.3951, allocations: 0 / 0.5341 GB, free: 11.48 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.1211/0.5163, allocations: 6.389 MB / 0.5403 GB, free: 7.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/0.5164, allocations: 53.56 kB / 0.5404 GB, free: 7.867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.073e-05/0.5165, allocations: 104.7 kB / 0.5405 GB, free: 7.762 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.336e-05/0.5165, allocations: 29.69 kB / 0.5405 GB, free: 7.727 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.133e-05/0.5166, allocations: 85.14 kB / 0.5406 GB, free: 7.641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.828e-05/0.5167, allocations: 58.8 kB / 0.5406 GB, free: 7.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/0.5169, allocations: 85.41 kB / 0.5407 GB, free: 7.535 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.5171, allocations: 324.9 kB / 0.541 GB, free: 7.211 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005558/0.5176, allocations: 228.6 kB / 0.5412 GB, free: 7.086 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005522/0.5182, allocations: 226.5 kB / 0.5415 GB, free: 6.965 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002077/0.5203, allocations: 0.5647 MB / 0.542 GB, free: 6.676 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.5203, allocations: 0 / 0.542 GB, free: 6.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001832/0.5221, allocations: 0.6083 MB / 0.5426 GB, free: 6.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.5222, allocations: 7.938 kB / 0.5426 GB, free: 6.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.5222, allocations: 7.922 kB / 0.5426 GB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.5222, allocations: 4 kB / 0.5426 GB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000647/0.5229, allocations: 99.84 kB / 0.5427 GB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.5229, allocations: 7.984 kB / 0.5427 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004209/0.5233, allocations: 23.97 kB / 0.5427 GB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.112e-05/0.5234, allocations: 31.94 kB / 0.5428 GB, free: 6.07 MB / 398.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.0001561/0.5236, allocations: 121.7 kB / 0.5429 GB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-05/0.5236, allocations: 11.91 kB / 0.5429 GB, free: 5.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002062/0.5257, allocations: 0.7309 MB / 0.5436 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.5257, allocations: 0 / 0.5436 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.5257, allocations: 3.938 kB / 0.5436 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.5257, allocations: 7.984 kB / 0.5436 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003875/0.5296, allocations: 1.156 MB / 0.5448 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.5296, allocations: 4 kB / 0.5448 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005156/0.5302, allocations: 104 kB / 0.5449 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.5302, allocations: 0 / 0.5449 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.204e-05/0.5302, allocations: 27.95 kB / 0.5449 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.5302, allocations: 3.938 kB / 0.5449 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.5302, allocations: 4 kB / 0.5449 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.5319, allocations: 0.582 MB / 0.5455 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.532, allocations: 89.02 kB / 0.5455 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.749e-05/0.532, allocations: 4 kB / 0.5455 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003831/0.5324, allocations: 27.95 kB / 0.5456 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.026e-05/0.5324, allocations: 11.98 kB / 0.5456 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.428e-05/0.5325, allocations: 31.95 kB / 0.5456 GB, free: 3.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.997e-05/0.5325, allocations: 79.28 kB / 0.5457 GB, free: 2.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5325, allocations: 4 kB / 0.5457 GB, free: 2.938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001719/0.5343, allocations: 0.6523 MB / 0.5463 GB, free: 2.285 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.002911/0.5372, allocations: 302.8 kB / 0.5466 GB, free: 1.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.5384, allocations: 451.5 kB / 0.5471 GB, free: 1.535 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5384, allocations: 0 / 0.5471 GB, free: 1.535 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005036/0.5389, allocations: 199.7 kB / 0.5472 GB, free: 1.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.5392, allocations: 8 kB / 0.5473 GB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/0.5416, allocations: 0.5626 MB / 0.5478 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.5418, allocations: 0.6887 MB / 0.5485 GB, free: 0 / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000312/0.5422, allocations: 95.28 kB / 0.5486 GB, free: 15.91 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5422, allocations: 0 / 0.5486 GB, free: 15.91 MB / 414.1 MB Notification: Performance of Templates: time 0.0249/0.5671, allocations: 15.97 MB / 0.5642 GB, free: 15.95 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches