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.001116/0.001116, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.3 MB, free: 9.066 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2041/0.2041, allocations: 46.11 MB / 343.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 71.7 kB / 416.9 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1134, allocations: 62.45 MB / 479.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001809/0.1152, allocations: 0.5999 MB / 480 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008791/0.1161, allocations: 438.8 kB / 480.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.194e-05/0.1162, allocations: 0 / 480.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.149e-05/0.1162, allocations: 0 / 480.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.927e-05/0.1163, allocations: 3.938 kB / 480.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004863/0.1168, allocations: 99.77 kB / 480.5 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.984e-05/0.1168, allocations: 27.91 kB / 480.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.669e-05/0.1169, allocations: 4 kB / 480.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.322e-05/0.1169, allocations: 4 kB / 480.5 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.664e-05/0.117, allocations: 23.86 kB / 480.6 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.117, allocations: 0 / 480.6 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002912/0.1173, allocations: 163.8 kB / 480.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.437e-05/0.1173, allocations: 3.984 kB / 480.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.1174, allocations: 19.86 kB / 480.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.1176, allocations: 123.8 kB / 480.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1176, allocations: 0 / 480.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1176, allocations: 4 kB / 480.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1176, allocations: 0 / 480.9 MB, free: 4.129 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.0004707/0.1181, allocations: 363.7 kB / 481.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.1181, allocations: 8.875 kB / 481.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.007e-05/0.1182, allocations: 38.75 kB / 481.3 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.729e-05/0.1182, allocations: 0.9375 kB / 481.3 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.1184, allocations: 180.2 kB / 481.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.1184, allocations: 384 / 481.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.1184, allocations: 8.375 kB / 481.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001256/0.1185, allocations: 58 kB / 481.5 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1186, allocations: 0 / 481.5 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.1186, allocations: 4 kB / 481.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1186, allocations: 0 / 481.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.937e-05/0.1187, allocations: 31.91 kB / 481.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001835/0.1189, allocations: 169.6 kB / 481.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.1191, allocations: 58.55 kB / 481.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.629e-05/0.1192, allocations: 32.8 kB / 481.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002783/0.1194, allocations: 109 kB / 481.9 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.1195, allocations: 38.72 kB / 482 MB, free: 2.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.1195, allocations: 0 / 482 MB, free: 2.863 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.1391/0.2586, allocations: 6.383 MB / 488.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.2587, allocations: 55.41 kB / 488.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.581e-05/0.2588, allocations: 101.9 kB / 488.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.663e-05/0.2588, allocations: 29.7 kB / 488.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.518e-05/0.2589, allocations: 84.12 kB / 488.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.055e-05/0.259, allocations: 59.11 kB / 488.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.2592, allocations: 89.59 kB / 488.7 MB, free: 12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.2593, allocations: 326.8 kB / 489.1 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005571/0.2599, allocations: 227.8 kB / 489.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005529/0.2604, allocations: 223.8 kB / 489.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/0.2627, allocations: 0.5612 MB / 490.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2627, allocations: 0 / 490.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00191/0.2646, allocations: 0.6065 MB / 490.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.2646, allocations: 4 kB / 490.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.2646, allocations: 4 kB / 490.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.2647, allocations: 3.938 kB / 490.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007292/0.2654, allocations: 111.8 kB / 490.8 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.2654, allocations: 0 / 490.8 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005011/0.2659, allocations: 23.95 kB / 490.8 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.645e-05/0.266, allocations: 35.94 kB / 490.9 MB, free: 9.871 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.0001598/0.2662, allocations: 125.7 kB / 491 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.273e-05/0.2662, allocations: 7.906 kB / 491 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002257/0.2685, allocations: 0.723 MB / 491.7 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.2685, allocations: 3.984 kB / 491.7 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.2685, allocations: 4 kB / 491.7 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2686, allocations: 4 kB / 491.7 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00431/0.2729, allocations: 1.173 MB / 492.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.2729, allocations: 256 / 492.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005865/0.2735, allocations: 99.86 kB / 493 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.2735, allocations: 0 / 493 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.095e-05/0.2736, allocations: 31.95 kB / 493 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.2736, allocations: 7.938 kB / 493 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2736, allocations: 3.938 kB / 493 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.2754, allocations: 0.5822 MB / 493.6 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.612e-05/0.2754, allocations: 85.02 kB / 493.7 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.907e-05/0.2755, allocations: 4 kB / 493.7 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004616/0.276, allocations: 27.95 kB / 493.7 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.131e-05/0.276, allocations: 19.92 kB / 493.8 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.27e-05/0.2761, allocations: 27.95 kB / 493.8 MB, free: 6.809 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.98e-05/0.2761, allocations: 91.22 kB / 493.9 MB, free: 6.719 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2761, allocations: 0 / 493.9 MB, free: 6.719 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001951/0.2781, allocations: 0.6406 MB / 494.5 MB, free: 6.078 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.005678/0.2838, allocations: 1.313 MB / 495.8 MB, free: 4.719 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.285, allocations: 439.6 kB / 496.3 MB, free: 4.289 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.2851, allocations: 4 kB / 496.3 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005406/0.2856, allocations: 211.5 kB / 496.5 MB, free: 4.082 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.2859, allocations: 11.94 kB / 496.5 MB, free: 4.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003607/0.2896, allocations: 0.6344 MB / 497.1 MB, free: 3.375 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.2899, allocations: 0.6967 MB / 497.8 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000567/0.2904, allocations: 124.9 kB / 497.9 MB, free: 2.527 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000345/0.2908, allocations: 99.28 kB / 498 MB, free: 2.43 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2908, allocations: 4 kB / 498 MB, free: 2.426 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2727/0.5635, allocations: 58.01 MB / 0.543 GB, free: 13.78 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001347/0.5637, allocations: 215.9 kB / 0.5432 GB, free: 13.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.287/2.851, allocations: 0 / 0.5432 GB, free: 13.52 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