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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001011/0.001011, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001139/0.001139, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2009/0.2009, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 78.84 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0982/0.09952, allocations: 62.43 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001652/0.1012, allocations: 0.5448 MB / 480.7 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007142/0.1019, allocations: 405.4 kB / 481.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.529e-05/0.102, allocations: 0 / 481.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.764e-05/0.102, allocations: 3.938 kB / 481.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.746e-05/0.1021, allocations: 0 / 481.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.1025, allocations: 147.5 kB / 481.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.409e-05/0.1026, allocations: 27.92 kB / 481.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.845e-05/0.1026, allocations: 0 / 481.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.029e-05/0.1027, allocations: 8 kB / 481.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.872e-05/0.1027, allocations: 19.86 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.468e-06/0.1027, allocations: 0 / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002462/0.103, allocations: 163.7 kB / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.362e-05/0.103, allocations: 11.98 kB / 481.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.524e-05/0.103, allocations: 19.88 kB / 481.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002036/0.1032, allocations: 120 kB / 481.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1033, allocations: 0 / 481.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1033, allocations: 4 kB / 481.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.1033, allocations: 0 / 481.6 MB, free: 3.754 MB / 350.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.0003903/0.1037, allocations: 363.5 kB / 481.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.1037, allocations: 8.031 kB / 481.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.716e-05/0.1038, allocations: 38.73 kB / 482 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.513e-05/0.1038, allocations: 4.938 kB / 482 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.1039, allocations: 176.2 kB / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.1039, allocations: 4.375 kB / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.103e-05/0.104, allocations: 4.375 kB / 482.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001136/0.1041, allocations: 61.98 kB / 482.2 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1041, allocations: 0 / 482.2 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.1041, allocations: 4 kB / 482.2 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1041, allocations: 0 / 482.2 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.975e-05/0.1042, allocations: 27.92 kB / 482.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001656/0.1044, allocations: 173.5 kB / 482.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.1045, allocations: 54.55 kB / 482.5 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.635e-05/0.1046, allocations: 40.78 kB / 482.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002498/0.1049, allocations: 101.4 kB / 482.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.1049, allocations: 46.42 kB / 482.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.1049, allocations: 0 / 482.7 MB, free: 2.48 MB / 350.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.1436/0.2485, allocations: 6.369 MB / 489 MB, free: 12.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.2486, allocations: 59.41 kB / 489.1 MB, free: 12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.551e-05/0.2486, allocations: 101.8 kB / 489.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.505e-05/0.2487, allocations: 33.7 kB / 489.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.384e-05/0.2488, allocations: 80.14 kB / 489.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.708e-05/0.2488, allocations: 67.03 kB / 489.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.249, allocations: 85.59 kB / 489.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.2491, allocations: 322.8 kB / 489.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005488/0.2497, allocations: 227.8 kB / 490 MB, free: 11.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005306/0.2502, allocations: 231.8 kB / 490.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002025/0.2523, allocations: 0.5612 MB / 490.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2523, allocations: 0 / 490.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00178/0.2541, allocations: 0.6064 MB / 491.4 MB, free: 9.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.2541, allocations: 8 kB / 491.4 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.2541, allocations: 7.938 kB / 491.4 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.2541, allocations: 0 / 491.4 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006322/0.2548, allocations: 103.8 kB / 491.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.2548, allocations: 0 / 491.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004137/0.2552, allocations: 27.97 kB / 491.5 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.714e-05/0.2553, allocations: 31.94 kB / 491.6 MB, free: 9.492 MB / 366.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.0001388/0.2554, allocations: 125.7 kB / 491.7 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.2555, allocations: 7.906 kB / 491.7 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/0.2576, allocations: 0.7228 MB / 492.4 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2576, allocations: 4.469 kB / 492.4 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2577, allocations: 4 kB / 492.4 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.2577, allocations: 3.984 kB / 492.4 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003922/0.2616, allocations: 1.161 MB / 493.6 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2616, allocations: 4 kB / 493.6 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005238/0.2621, allocations: 99.8 kB / 493.7 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.902e-06/0.2622, allocations: 4 kB / 493.7 MB, free: 7.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.749e-05/0.2622, allocations: 31.95 kB / 493.7 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.2622, allocations: 7.922 kB / 493.7 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.2622, allocations: 4 kB / 493.7 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001645/0.2639, allocations: 0.5744 MB / 494.3 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.898e-05/0.2639, allocations: 92.94 kB / 494.4 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.986e-05/0.264, allocations: 11.98 kB / 494.4 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004044/0.2644, allocations: 19.97 kB / 494.4 MB, free: 6.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.765e-05/0.2645, allocations: 15.98 kB / 494.4 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-05/0.2645, allocations: 31.95 kB / 494.5 MB, free: 6.434 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.505e-05/0.2645, allocations: 87.2 kB / 494.6 MB, free: 6.348 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2646, allocations: 0 / 494.6 MB, free: 6.348 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001554/0.2661, allocations: 0.6445 MB / 495.2 MB, free: 5.703 MB / 366.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.004753/0.2709, allocations: 1.303 MB / 496.5 MB, free: 4.352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.272, allocations: 458.2 kB / 497 MB, free: 3.906 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.272, allocations: 4 kB / 497 MB, free: 3.902 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005069/0.2725, allocations: 203.7 kB / 497.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.2728, allocations: 8 kB / 497.2 MB, free: 3.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/0.2758, allocations: 0.625 MB / 497.8 MB, free: 3.012 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.276, allocations: 0.6926 MB / 498.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005229/0.2766, allocations: 124.9 kB / 498.6 MB, free: 2.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003056/0.2769, allocations: 95.28 kB / 498.7 MB, free: 2.074 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2769, allocations: 4 kB / 498.7 MB, free: 2.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2304/0.5073, allocations: 58.54 MB / 0.5442 GB, free: 13.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.05, allocations: 4.062 kB / 0.5442 GB, free: 13.02 MB / 382.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > 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