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.0008123/0.0008123, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008176/0.0008176, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.859/0.859, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.2261/0.2261, allocations: 34.24 MB / 294.8 MB, free: 0.6875 MB / 266.7 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 3.984 kB / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.93e-05/2.155e-05, allocations: 4.953 kB / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001126/0.001148, allocations: 0.5322 MB / 442.7 MB, free: 1.047 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00074/0.001888, allocations: 366.8 kB / 443 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.455e-05/0.001912, allocations: 8 kB / 443 MB, free: 0.6758 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.001928, allocations: 3.938 kB / 443 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.843e-05/0.001957, allocations: 3.938 kB / 443 MB, free: 0.668 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.002354, allocations: 135.5 kB / 443.2 MB, free: 0.5352 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.225e-05/0.002407, allocations: 23.92 kB / 443.2 MB, free: 0.5117 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.019e-05/0.002447, allocations: 7.922 kB / 443.2 MB, free: 0.5039 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.418e-05/0.002481, allocations: 19.97 kB / 443.2 MB, free: 496 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.379e-05/0.002525, allocations: 11.98 kB / 443.2 MB, free: 484 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.002537, allocations: 4 kB / 443.2 MB, free: 480 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001718/0.002709, allocations: 143.7 kB / 443.4 MB, free: 336 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.264e-05/0.002722, allocations: 3.984 kB / 443.4 MB, free: 332 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.678e-05/0.002738, allocations: 7.938 kB / 443.4 MB, free: 324 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.002898, allocations: 147.6 kB / 443.5 MB, free: 176 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.0029, allocations: 0 / 443.5 MB, free: 176 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.002901, allocations: 4 kB / 443.5 MB, free: 172 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.002905, allocations: 0 / 443.5 MB, free: 172 kB / 410.7 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.1564/0.1593, allocations: 290.3 kB / 443.8 MB, free: 43.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.1594, allocations: 10.84 kB / 443.8 MB, free: 43.76 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.524e-05/0.1594, allocations: 35.56 kB / 443.9 MB, free: 43.72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.789e-05/0.1594, allocations: 3.531 kB / 443.9 MB, free: 43.72 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.612e-05/0.1595, allocations: 114.7 kB / 444 MB, free: 43.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.1595, allocations: 1.312 kB / 444 MB, free: 43.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.1595, allocations: 11.47 kB / 444 MB, free: 43.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.761e-05/0.1596, allocations: 60.09 kB / 444.1 MB, free: 43.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.1596, allocations: 192 / 444.1 MB, free: 43.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.1596, allocations: 8.141 kB / 444.1 MB, free: 43.56 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.1596, allocations: 3.938 kB / 444.1 MB, free: 43.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.289e-05/0.1597, allocations: 28.11 kB / 444.1 MB, free: 43.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001032/0.1598, allocations: 133.5 kB / 444.2 MB, free: 43.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.16, allocations: 55.06 kB / 444.3 MB, free: 43.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.103e-05/0.16, allocations: 24.42 kB / 444.3 MB, free: 43.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001634/0.1602, allocations: 29.02 kB / 444.3 MB, free: 43.37 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.089e-05/0.1602, allocations: 35.48 kB / 444.4 MB, free: 43.33 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.1602, allocations: 0.5625 kB / 444.4 MB, free: 43.33 MB / 410.7 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.0618/0.222, allocations: 6.377 MB / 450.8 MB, free: 42.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.222, allocations: 57.31 kB / 450.8 MB, free: 42.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.676e-05/0.222, allocations: 102.2 kB / 450.9 MB, free: 42.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.2221, allocations: 33.08 kB / 450.9 MB, free: 42.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.535e-05/0.2221, allocations: 85.2 kB / 451 MB, free: 42.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.629e-05/0.2221, allocations: 63.28 kB / 451.1 MB, free: 42.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.2222, allocations: 90.53 kB / 451.2 MB, free: 42.56 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.951e-05/0.2223, allocations: 320.9 kB / 451.5 MB, free: 42.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003041/0.2226, allocations: 223.8 kB / 451.7 MB, free: 42.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002946/0.2229, allocations: 241.1 kB / 451.9 MB, free: 42.22 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.224, allocations: 0.56 MB / 452.5 MB, free: 42.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.224, allocations: 3.938 kB / 452.5 MB, free: 42.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009716/0.2249, allocations: 0.6031 MB / 453.1 MB, free: 41.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.225, allocations: 9.297 kB / 453.1 MB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.225, allocations: 0 / 453.1 MB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.225, allocations: 2.906 kB / 453.1 MB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003064/0.2253, allocations: 107 kB / 453.2 MB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.2253, allocations: 0 / 453.2 MB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.2255, allocations: 32.72 kB / 453.3 MB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.2255, allocations: 30.83 kB / 453.3 MB, free: 41.81 MB / 410.7 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 9.718e-05/0.2256, allocations: 121.9 kB / 453.4 MB, free: 41.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.2257, allocations: 9.766 kB / 453.4 MB, free: 41.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.2268, allocations: 0.7341 MB / 454.1 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.2268, allocations: 2.875 kB / 454.1 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2268, allocations: 0 / 454.1 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2268, allocations: 480 / 454.2 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.2289, allocations: 1.07 MB / 455.2 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2289, allocations: 7.062 kB / 455.2 MB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002419/0.2291, allocations: 102.7 kB / 455.3 MB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.2291, allocations: 10.39 kB / 455.3 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.2291, allocations: 32.78 kB / 455.4 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2291, allocations: 3.031 kB / 455.4 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2292, allocations: 3.188 kB / 455.4 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009097/0.2301, allocations: 0.5778 MB / 456 MB, free: 40.63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.273e-05/0.2301, allocations: 6.891 kB / 456 MB, free: 40.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/0.2301, allocations: 11.06 kB / 456 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.2303, allocations: 28.41 kB / 456 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.059e-05/0.2303, allocations: 14.69 kB / 456 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.92e-05/0.2303, allocations: 31.27 kB / 456 MB, free: 40.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.69e-05/0.2304, allocations: 82.41 kB / 456.1 MB, free: 40.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2304, allocations: 4 kB / 456.1 MB, free: 40.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001273/0.2316, allocations: 0.6468 MB / 456.8 MB, free: 40.5 MB / 410.7 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.003318/0.2349, allocations: 1.337 MB / 458.1 MB, free: 39.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007251/0.2357, allocations: 441 kB / 458.5 MB, free: 39.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2357, allocations: 0 / 458.5 MB, free: 39.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002868/0.236, allocations: 195.1 kB / 458.7 MB, free: 39.49 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.2362, allocations: 12.69 kB / 458.7 MB, free: 39.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.2381, allocations: 0.6188 MB / 459.4 MB, free: 39.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.228e-05/0.2382, allocations: 87.44 kB / 459.4 MB, free: 39.1 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002563/0.2384, allocations: 125.4 kB / 459.6 MB, free: 39.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.2386, allocations: 104.2 kB / 459.7 MB, free: 39.04 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/0.2386, allocations: 0 / 459.7 MB, free: 39.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06883/0.3075, allocations: 60.28 MB / 0.5078 GB, free: 2.996 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.884/7.192, allocations: 10.83 kB / 0.5078 GB, free: 2.988 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins/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: 9.084838955663145]