Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2281/0.2281, allocations: 46.94 MB / 361.6 MB, free: 4.281 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 67.91 kB / 0.4969 GB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3663, allocations: 66.03 MB / 0.5614 GB, free: 4.5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.002051/0.3684, allocations: 0.5383 MB / 0.5619 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008818/0.3693, allocations: 414.7 kB / 0.5623 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.684e-05/0.3693, allocations: 0 / 0.5623 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.565e-05/0.3693, allocations: 0 / 0.5623 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.046e-05/0.3694, allocations: 7.938 kB / 0.5623 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005525/0.3699, allocations: 135.4 kB / 0.5625 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.587e-05/0.37, allocations: 31.84 kB / 0.5625 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.43e-05/0.3701, allocations: 4 kB / 0.5625 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.981e-05/0.3701, allocations: 15.92 kB / 0.5625 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.851e-05/0.3702, allocations: 11.92 kB / 0.5625 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.3702, allocations: 4 kB / 0.5625 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003254/0.3705, allocations: 163.8 kB / 0.5627 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.3705, allocations: 7.984 kB / 0.5627 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.328e-05/0.3706, allocations: 19.86 kB / 0.5627 GB, free: 3.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002574/0.3708, allocations: 121.7 kB / 0.5628 GB, free: 3.043 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3708, allocations: 0 / 0.5628 GB, free: 3.043 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3709, allocations: 0 / 0.5628 GB, free: 3.043 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.3709, allocations: 0 / 0.5628 GB, free: 3.043 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.0007074/0.3716, allocations: 293.9 kB / 0.5631 GB, free: 2.727 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.124e-05/0.3716, allocations: 15.97 kB / 0.5631 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.049e-05/0.3717, allocations: 8.188 kB / 0.5631 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.638e-05/0.3717, allocations: 30.75 kB / 0.5632 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.385e-05/0.3718, allocations: 4.938 kB / 0.5632 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.3719, allocations: 114.4 kB / 0.5633 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.3719, allocations: 8.312 kB / 0.5633 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.763e-05/0.372, allocations: 4.375 kB / 0.5633 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.3721, allocations: 57.8 kB / 0.5633 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.3721, allocations: 0 / 0.5633 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.3722, allocations: 0 / 0.5633 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.3722, allocations: 4 kB / 0.5633 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.541e-05/0.3722, allocations: 31.98 kB / 0.5634 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002334/0.3725, allocations: 148.6 kB / 0.5635 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002176/0.3727, allocations: 50.55 kB / 0.5636 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.187e-05/0.3727, allocations: 28.84 kB / 0.5636 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002571/0.373, allocations: 31.95 kB / 0.5636 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.373, allocations: 38.5 kB / 0.5637 GB, free: 2.059 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.373, allocations: 288 / 0.5637 GB, free: 2.059 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.1378/0.5109, allocations: 6.378 MB / 0.5699 GB, free: 11.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.5109, allocations: 59.34 kB / 0.5699 GB, free: 11.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.22e-05/0.511, allocations: 105.8 kB / 0.57 GB, free: 11.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.508e-05/0.5111, allocations: 29.7 kB / 0.5701 GB, free: 11.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.95e-05/0.5111, allocations: 80.61 kB / 0.5702 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.612e-05/0.5112, allocations: 71.38 kB / 0.5702 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.5114, allocations: 93.58 kB / 0.5703 GB, free: 11.17 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.5116, allocations: 322.8 kB / 0.5706 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005714/0.5121, allocations: 227.8 kB / 0.5708 GB, free: 10.62 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/0.5127, allocations: 241.6 kB / 0.5711 GB, free: 10.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002178/0.5149, allocations: 0.5495 MB / 0.5716 GB, free: 9.836 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.5149, allocations: 0 / 0.5716 GB, free: 9.836 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001915/0.5168, allocations: 0.6105 MB / 0.5722 GB, free: 9.219 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.5168, allocations: 10.44 kB / 0.5722 GB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.5168, allocations: 0 / 0.5722 GB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.5168, allocations: 4 kB / 0.5722 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006709/0.5175, allocations: 103.8 kB / 0.5723 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.5175, allocations: 4 kB / 0.5723 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004361/0.518, allocations: 27.95 kB / 0.5723 GB, free: 9.074 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.296e-05/0.518, allocations: 31.89 kB / 0.5724 GB, free: 9.043 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.0001758/0.5182, allocations: 129.7 kB / 0.5725 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.757e-05/0.5183, allocations: 7.953 kB / 0.5725 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002222/0.5205, allocations: 0.7282 MB / 0.5732 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.5205, allocations: 4 kB / 0.5732 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.5205, allocations: 0 / 0.5732 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.5205, allocations: 3.938 kB / 0.5732 GB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004201/0.5247, allocations: 1.121 MB / 0.5743 GB, free: 6.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5247, allocations: 0 / 0.5743 GB, free: 6.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005609/0.5253, allocations: 99.8 kB / 0.5744 GB, free: 6.871 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.5253, allocations: 4 kB / 0.5744 GB, free: 6.867 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.385e-05/0.5253, allocations: 27.95 kB / 0.5744 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.5253, allocations: 8.188 kB / 0.5745 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.5253, allocations: 3.938 kB / 0.5745 GB, free: 6.828 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/0.5271, allocations: 0.5844 MB / 0.575 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.115e-05/0.5271, allocations: 7.953 kB / 0.575 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.033e-05/0.5272, allocations: 8 kB / 0.575 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004226/0.5276, allocations: 27.95 kB / 0.5751 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.961e-05/0.5277, allocations: 23.84 kB / 0.5751 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.849e-05/0.5277, allocations: 35.89 kB / 0.5751 GB, free: 6.109 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.827e-05/0.5278, allocations: 79.28 kB / 0.5752 GB, free: 6.031 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5278, allocations: 4 kB / 0.5752 GB, free: 6.027 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001787/0.5295, allocations: 0.6441 MB / 0.5758 GB, free: 5.383 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.005316/0.5349, allocations: 1.31 MB / 0.5771 GB, free: 4.023 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.5362, allocations: 436.2 kB / 0.5775 GB, free: 3.598 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.5362, allocations: 3.938 kB / 0.5775 GB, free: 3.594 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005516/0.5367, allocations: 191.8 kB / 0.5777 GB, free: 3.406 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.537, allocations: 18.84 kB / 0.5777 GB, free: 3.391 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003592/0.5406, allocations: 0.6243 MB / 0.5783 GB, free: 2.707 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.541, allocations: 0.6964 MB / 0.579 GB, free: 1.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000417/0.5414, allocations: 129 kB / 0.5791 GB, free: 1.852 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003557/0.5418, allocations: 95.28 kB / 0.5792 GB, free: 1.758 MB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5418, allocations: 0 / 0.5792 GB, free: 1.758 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09878/0.6405, allocations: 58.93 MB / 0.6368 GB, free: 6.906 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/12.13, allocations: 11.98 kB / 0.6368 GB, free: 6.895 MB / 478.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 15.261224592977669]