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.00148/0.00148, allocations: 107.1 kB / 17.32 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00175/0.00175, allocations: 205.8 kB / 18.26 MB, free: 4.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2197/0.2197, allocations: 46.1 MB / 343.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001462, allocations: 71.64 kB / 417.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1131, allocations: 62.45 MB / 479.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001757/0.1149, allocations: 0.5903 MB / 480.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007409/0.1156, allocations: 406.9 kB / 480.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.291e-05/0.1157, allocations: 0 / 480.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.855e-05/0.1157, allocations: 3.938 kB / 480.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.05e-05/0.1158, allocations: 0 / 480.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004772/0.1162, allocations: 119.8 kB / 480.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.273e-05/0.1163, allocations: 27.91 kB / 480.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.225e-05/0.1164, allocations: 4 kB / 480.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.137e-05/0.1164, allocations: 11.94 kB / 480.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.008e-05/0.1164, allocations: 23.86 kB / 480.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.1165, allocations: 4 kB / 480.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002582/0.1167, allocations: 155.8 kB / 480.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.428e-05/0.1168, allocations: 7.984 kB / 480.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.834e-05/0.1168, allocations: 19.86 kB / 481 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001959/0.117, allocations: 124 kB / 481.1 MB, free: 4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.117, allocations: 0 / 481.1 MB, free: 4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.117, allocations: 0 / 481.1 MB, free: 4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.117, allocations: 0 / 481.1 MB, free: 4 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.0004014/0.1174, allocations: 367.4 kB / 481.4 MB, free: 3.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.1175, allocations: 12.03 kB / 481.4 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.623e-05/0.1175, allocations: 34.75 kB / 481.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.862e-05/0.1176, allocations: 4.938 kB / 481.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.1177, allocations: 180.2 kB / 481.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.1177, allocations: 384 / 481.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.1177, allocations: 4.375 kB / 481.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.1178, allocations: 61.88 kB / 481.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1179, allocations: 0 / 481.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.1179, allocations: 0 / 481.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.1179, allocations: 7.984 kB / 481.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.617e-05/0.118, allocations: 31.98 kB / 481.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001769/0.1181, allocations: 169.6 kB / 481.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.1184, allocations: 62.58 kB / 482 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.631e-05/0.1184, allocations: 20.86 kB / 482 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002616/0.1187, allocations: 113 kB / 482.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.1187, allocations: 38.5 kB / 482.2 MB, free: 2.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.1187, allocations: 0 / 482.2 MB, free: 2.727 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.1405/0.2592, allocations: 6.382 MB / 488.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.2593, allocations: 51.41 kB / 488.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.745e-05/0.2594, allocations: 101.9 kB / 488.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.02e-05/0.2594, allocations: 25.7 kB / 488.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.802e-05/0.2595, allocations: 92.12 kB / 488.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.928e-05/0.2596, allocations: 63.05 kB / 488.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001781/0.2598, allocations: 85.59 kB / 489 MB, free: 11.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.2599, allocations: 322.8 kB / 489.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005341/0.2604, allocations: 227.8 kB / 489.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005623/0.261, allocations: 227.8 kB / 489.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002157/0.2632, allocations: 0.5612 MB / 490.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2632, allocations: 0 / 490.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001932/0.2651, allocations: 0.6104 MB / 490.9 MB, free: 9.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.2652, allocations: 4.469 kB / 490.9 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.2652, allocations: 0 / 490.9 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.2652, allocations: 3.938 kB / 490.9 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007395/0.2659, allocations: 111.8 kB / 491 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.266, allocations: 4 kB / 491 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004891/0.2665, allocations: 31.89 kB / 491 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.718e-05/0.2665, allocations: 31.94 kB / 491.1 MB, free: 9.727 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.000158/0.2667, allocations: 121.8 kB / 491.2 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.077e-05/0.2668, allocations: 7.906 kB / 491.2 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0022/0.269, allocations: 0.7306 MB / 491.9 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.269, allocations: 3.984 kB / 491.9 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.269, allocations: 0 / 491.9 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.269, allocations: 7.984 kB / 491.9 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00432/0.2734, allocations: 1.161 MB / 493.1 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2734, allocations: 0 / 493.1 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005934/0.274, allocations: 99.98 kB / 493.2 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.274, allocations: 4 kB / 493.2 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.224e-05/0.2741, allocations: 31.95 kB / 493.2 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.2741, allocations: 256 / 493.2 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.2741, allocations: 4 kB / 493.2 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.2758, allocations: 0.586 MB / 493.8 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.051e-05/0.2759, allocations: 85.02 kB / 493.9 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.031e-05/0.2759, allocations: 4 kB / 493.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004681/0.2764, allocations: 31.95 kB / 493.9 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.338e-05/0.2764, allocations: 11.98 kB / 494 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.255e-05/0.2765, allocations: 31.95 kB / 494 MB, free: 6.672 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.037e-05/0.2766, allocations: 83.22 kB / 494.1 MB, free: 6.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2766, allocations: 0 / 494.1 MB, free: 6.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001724/0.2783, allocations: 0.6445 MB / 494.7 MB, free: 5.945 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.005309/0.2836, allocations: 1.314 MB / 496 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.285, allocations: 462.3 kB / 496.5 MB, free: 4.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.285, allocations: 0 / 496.5 MB, free: 4.137 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000534/0.2856, allocations: 199.7 kB / 496.7 MB, free: 3.941 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.2859, allocations: 12.38 kB / 496.7 MB, free: 3.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003974/0.2899, allocations: 0.6441 MB / 497.3 MB, free: 3.227 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.2902, allocations: 0.6926 MB / 498 MB, free: 2.504 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005796/0.2908, allocations: 124.9 kB / 498.1 MB, free: 2.383 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003409/0.2912, allocations: 99.27 kB / 498.2 MB, free: 2.285 MB / 366.1 MB Notification: Performance of SimCode: time 1.323e-06/0.2912, allocations: 0 / 498.2 MB, free: 2.285 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2579/0.5491, allocations: 58.43 MB / 0.5436 GB, free: 13.61 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/0.5493, allocations: 214.1 kB / 0.5438 GB, free: 13.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.433/2.983, allocations: 0 / 0.5438 GB, free: 13.36 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