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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001498/0.001498, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001661/0.001661, allocations: 215.8 kB / 24.53 MB, free: 4.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 230.5 MB / 258.2 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2133/0.2133, allocations: 46.93 MB / 361.6 MB, free: 4.184 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 75.89 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2814, allocations: 66.09 MB / 0.5615 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001518/0.283, allocations: 0.5344 MB / 0.562 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007379/0.2837, allocations: 410.8 kB / 0.5624 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.295e-05/0.2837, allocations: 0 / 0.5624 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.38e-05/0.2837, allocations: 7.938 kB / 0.5624 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.735e-05/0.2838, allocations: 3.938 kB / 0.5624 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004434/0.2842, allocations: 135.4 kB / 0.5626 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.723e-05/0.2843, allocations: 23.92 kB / 0.5626 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.978e-05/0.2843, allocations: 8 kB / 0.5626 GB, free: 3.164 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.172e-05/0.2843, allocations: 11.92 kB / 0.5626 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.172e-05/0.2844, allocations: 15.92 kB / 0.5626 GB, free: 3.137 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.2844, allocations: 8 kB / 0.5626 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002674/0.2847, allocations: 163.8 kB / 0.5628 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.27e-05/0.2847, allocations: 7.984 kB / 0.5628 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.438e-05/0.2847, allocations: 11.88 kB / 0.5628 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001969/0.2849, allocations: 121.7 kB / 0.5629 GB, free: 2.832 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2849, allocations: 0 / 0.5629 GB, free: 2.832 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2849, allocations: 0 / 0.5629 GB, free: 2.832 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2849, allocations: 0 / 0.5629 GB, free: 2.832 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.0003917/0.2853, allocations: 297.9 kB / 0.5632 GB, free: 2.512 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2853, allocations: 12.03 kB / 0.5632 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.121e-05/0.2853, allocations: 8.125 kB / 0.5632 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.978e-05/0.2854, allocations: 34.75 kB / 0.5632 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.527e-05/0.2854, allocations: 4.938 kB / 0.5633 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.862e-05/0.2855, allocations: 118.4 kB / 0.5634 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.2855, allocations: 4.359 kB / 0.5634 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.2855, allocations: 8.375 kB / 0.5634 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.2857, allocations: 53.75 kB / 0.5634 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.2857, allocations: 3.938 kB / 0.5634 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.2857, allocations: 4 kB / 0.5634 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.2857, allocations: 8 kB / 0.5634 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.413e-05/0.2858, allocations: 31.95 kB / 0.5635 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001627/0.2859, allocations: 136.7 kB / 0.5636 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.2861, allocations: 58.58 kB / 0.5637 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.32e-05/0.2862, allocations: 20.86 kB / 0.5637 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002334/0.2864, allocations: 39.95 kB / 0.5637 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.2864, allocations: 34.5 kB / 0.5638 GB, free: 1.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.062e-06/0.2864, allocations: 0 / 0.5638 GB, free: 1.84 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.1346/0.421, allocations: 6.383 MB / 0.57 GB, free: 11.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.4211, allocations: 55.41 kB / 0.57 GB, free: 11.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.374e-05/0.4212, allocations: 105.8 kB / 0.5701 GB, free: 11.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.942e-05/0.4212, allocations: 25.7 kB / 0.5702 GB, free: 11.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.21e-05/0.4212, allocations: 92.08 kB / 0.5702 GB, free: 11.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.75e-05/0.4213, allocations: 71.41 kB / 0.5703 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/0.4215, allocations: 85.59 kB / 0.5704 GB, free: 10.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4216, allocations: 322.8 kB / 0.5707 GB, free: 10.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005537/0.4222, allocations: 227.8 kB / 0.5709 GB, free: 10.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005594/0.4228, allocations: 235.8 kB / 0.5711 GB, free: 10.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00209/0.4248, allocations: 0.5512 MB / 0.5717 GB, free: 9.617 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.4249, allocations: 0 / 0.5717 GB, free: 9.617 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001857/0.4267, allocations: 0.6169 MB / 0.5723 GB, free: 8.996 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.4267, allocations: 4 kB / 0.5723 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.4267, allocations: 0 / 0.5723 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.4267, allocations: 4 kB / 0.5723 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006551/0.4274, allocations: 111.8 kB / 0.5724 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.4274, allocations: 480 / 0.5724 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004261/0.4278, allocations: 27.95 kB / 0.5724 GB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.658e-05/0.4279, allocations: 35.88 kB / 0.5725 GB, free: 8.816 MB / 414.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.0001526/0.4281, allocations: 113.8 kB / 0.5726 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.858e-05/0.4281, allocations: 11.95 kB / 0.5726 GB, free: 8.684 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00211/0.4302, allocations: 0.7318 MB / 0.5733 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.4302, allocations: 4 kB / 0.5733 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.4302, allocations: 256 / 0.5733 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.4302, allocations: 3.938 kB / 0.5733 GB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003982/0.4342, allocations: 1.124 MB / 0.5744 GB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.4342, allocations: 0 / 0.5744 GB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005357/0.4348, allocations: 99.8 kB / 0.5745 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.4348, allocations: 4.188 kB / 0.5745 GB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.863e-05/0.4348, allocations: 27.95 kB / 0.5745 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.4348, allocations: 7.984 kB / 0.5745 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.4348, allocations: 0 / 0.5745 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/0.4365, allocations: 0.5884 MB / 0.5751 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.4e-05/0.4366, allocations: 7.953 kB / 0.5751 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.501e-05/0.4366, allocations: 7.984 kB / 0.5751 GB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/0.437, allocations: 31.91 kB / 0.5752 GB, free: 5.945 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.523e-05/0.437, allocations: 11.97 kB / 0.5752 GB, free: 5.934 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-05/0.4371, allocations: 39.89 kB / 0.5752 GB, free: 5.895 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.731e-05/0.4371, allocations: 79.28 kB / 0.5753 GB, free: 5.816 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4371, allocations: 0 / 0.5753 GB, free: 5.816 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001667/0.4388, allocations: 0.648 MB / 0.5759 GB, free: 5.168 MB / 414.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.004874/0.4437, allocations: 1.31 MB / 0.5772 GB, free: 3.809 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.4449, allocations: 439.5 kB / 0.5776 GB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4449, allocations: 0 / 0.5776 GB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005198/0.4454, allocations: 191.7 kB / 0.5778 GB, free: 3.191 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.4457, allocations: 23.39 kB / 0.5778 GB, free: 3.172 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/0.4488, allocations: 0.6163 MB / 0.5784 GB, free: 2.492 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.4491, allocations: 0.6926 MB / 0.5791 GB, free: 1.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003985/0.4495, allocations: 129 kB / 0.5792 GB, free: 1.641 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003314/0.4498, allocations: 99.28 kB / 0.5793 GB, free: 1.543 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4498, allocations: 0 / 0.5793 GB, free: 1.543 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09613/0.546, allocations: 58.92 MB / 0.6369 GB, free: 6.602 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.53, allocations: 7.672 kB / 0.6369 GB, free: 6.598 MB / 478.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 14.414883185992949]