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.001364/0.001364, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001588, allocations: 200.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2375/0.2375, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 75.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3657, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001569/0.3673, allocations: 0.5405 MB / 0.5322 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007818/0.3681, allocations: 405.5 kB / 0.5326 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.9e-05/0.3681, allocations: 0 / 0.5326 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.387e-05/0.3681, allocations: 0 / 0.5326 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.207e-05/0.3682, allocations: 7.062 kB / 0.5326 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005476/0.3687, allocations: 140.1 kB / 0.5327 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.839e-05/0.3688, allocations: 32.88 kB / 0.5327 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.799e-05/0.3689, allocations: 0 / 0.5327 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.945e-05/0.3689, allocations: 11.09 kB / 0.5327 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.672e-05/0.3689, allocations: 23.34 kB / 0.5328 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.369, allocations: 3.562 kB / 0.5328 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002344/0.3692, allocations: 153 kB / 0.5329 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.176e-05/0.3692, allocations: 18.72 kB / 0.5329 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.456e-05/0.3693, allocations: 14.62 kB / 0.5329 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.3694, allocations: 127.5 kB / 0.5331 GB, free: 12.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.3695, allocations: 0 / 0.5331 GB, free: 12.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3695, allocations: 0 / 0.5331 GB, free: 12.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.3695, 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.0004732/0.37, allocations: 362.7 kB / 0.5334 GB, free: 12.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.37, allocations: 9.375 kB / 0.5334 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.512e-05/0.37, allocations: 3.594 kB / 0.5334 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.3702, allocations: 168.9 kB / 0.5336 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.3702, allocations: 5.719 kB / 0.5336 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.388e-05/0.3702, allocations: 8.344 kB / 0.5336 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.3703, allocations: 58.36 kB / 0.5336 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.3704, allocations: 7.938 kB / 0.5337 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.3704, allocations: 0.8438 kB / 0.5337 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.3704, allocations: 1.031 kB / 0.5337 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.51e-05/0.3705, allocations: 24.45 kB / 0.5337 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001826/0.3707, allocations: 176 kB / 0.5338 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.3709, allocations: 68.52 kB / 0.5339 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.989e-05/0.3709, allocations: 24.23 kB / 0.5339 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003021/0.3712, allocations: 105.6 kB / 0.534 GB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.3713, allocations: 31.72 kB / 0.5341 GB, free: 11.49 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.223e-06/0.3713, allocations: 0 / 0.5341 GB, free: 11.49 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.145/0.5162, allocations: 6.385 MB / 0.5403 GB, free: 7.945 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.5163, allocations: 52.69 kB / 0.5404 GB, free: 7.883 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.5164, allocations: 103.8 kB / 0.5405 GB, free: 7.777 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.231e-05/0.5165, allocations: 31.2 kB / 0.5405 GB, free: 7.742 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.425e-05/0.5165, allocations: 81.33 kB / 0.5406 GB, free: 7.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.282e-05/0.5166, allocations: 66.55 kB / 0.5406 GB, free: 7.602 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/0.5168, allocations: 88.31 kB / 0.5407 GB, free: 7.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.5169, allocations: 325.2 kB / 0.541 GB, free: 7.219 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005613/0.5175, allocations: 232.9 kB / 0.5412 GB, free: 7.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005321/0.518, allocations: 226.1 kB / 0.5415 GB, free: 6.969 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002225/0.5203, allocations: 0.5601 MB / 0.542 GB, free: 6.684 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.5203, allocations: 4.453 kB / 0.542 GB, free: 6.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001981/0.5223, allocations: 0.602 MB / 0.5426 GB, free: 6.281 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.5223, allocations: 11.94 kB / 0.5426 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.5223, allocations: 0 / 0.5426 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.5223, allocations: 0 / 0.5426 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007078/0.5231, allocations: 115.7 kB / 0.5427 GB, free: 6.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.5231, allocations: 0 / 0.5427 GB, free: 6.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004538/0.5235, allocations: 23.95 kB / 0.5427 GB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.675e-05/0.5236, allocations: 35.94 kB / 0.5428 GB, free: 6.098 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.0001528/0.5238, allocations: 121.8 kB / 0.5429 GB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.657e-05/0.5238, allocations: 7.906 kB / 0.5429 GB, free: 5.961 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002165/0.526, allocations: 0.7347 MB / 0.5436 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.526, allocations: 7.984 kB / 0.5436 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.526, allocations: 0 / 0.5436 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.526, allocations: 0 / 0.5436 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004014/0.5301, allocations: 1.157 MB / 0.5448 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.5301, allocations: 7.984 kB / 0.5448 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000538/0.5306, allocations: 96.05 kB / 0.5449 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.5306, allocations: 4 kB / 0.5449 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.718e-05/0.5307, allocations: 31.95 kB / 0.5449 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.5307, allocations: 4 kB / 0.5449 GB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.5307, allocations: 4 kB / 0.5449 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.5324, allocations: 0.5822 MB / 0.5455 GB, free: 3.223 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.746e-05/0.5324, allocations: 85.02 kB / 0.5455 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.697e-05/0.5325, allocations: 8 kB / 0.5456 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004183/0.5329, allocations: 23.95 kB / 0.5456 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.693e-05/0.533, allocations: 15.98 kB / 0.5456 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.503e-05/0.533, allocations: 35.89 kB / 0.5456 GB, free: 3.039 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.462e-05/0.5331, allocations: 83.28 kB / 0.5457 GB, free: 2.957 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5331, allocations: 0 / 0.5457 GB, free: 2.957 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001724/0.5348, allocations: 0.6483 MB / 0.5463 GB, free: 2.309 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.003015/0.5378, allocations: 290.9 kB / 0.5466 GB, free: 2.012 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.539, allocations: 459.5 kB / 0.5471 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.539, allocations: 0 / 0.5471 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005072/0.5395, allocations: 199.7 kB / 0.5472 GB, free: 1.367 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.5399, allocations: 8.375 kB / 0.5473 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002312/0.5422, allocations: 0.5544 MB / 0.5478 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.5425, allocations: 0.6965 MB / 0.5485 GB, free: 28 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003218/0.5428, allocations: 87.28 kB / 0.5486 GB, free: 15.94 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.5428, allocations: 0 / 0.5486 GB, free: 15.94 MB / 414.1 MB Notification: Performance of Templates: time 0.02368/0.5665, allocations: 15.96 MB / 0.5641 GB, free: 15.98 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