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.0009308/0.0009309, allocations: 92.12 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 204.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1869/0.1869, allocations: 46.18 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002333/0.0002334, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1009, allocations: 63.57 MB / 483.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0005734/0.1016, allocations: 269.3 kB / 483.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007424/0.1023, allocations: 422.9 kB / 483.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.783e-05/0.1023, allocations: 4 kB / 483.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.375e-05/0.1024, allocations: 3.938 kB / 483.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.942e-05/0.1024, allocations: 0 / 483.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.1028, allocations: 99.77 kB / 484 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.763e-05/0.1029, allocations: 23.92 kB / 484 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.006e-05/0.1029, allocations: 7.984 kB / 484 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.183e-05/0.1029, allocations: 8 kB / 484 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.763e-05/0.103, allocations: 19.86 kB / 484 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.103, allocations: 4 kB / 484 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002538/0.1033, allocations: 159.8 kB / 484.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.17e-05/0.1033, allocations: 3.984 kB / 484.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.519e-05/0.1033, allocations: 41.58 kB / 484.2 MB, free: 3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.1035, allocations: 131.8 kB / 484.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.1035, allocations: 0 / 484.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1035, allocations: 0 / 484.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.1036, allocations: 0 / 484.4 MB, free: 2.871 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.0003618/0.1039, allocations: 359.7 kB / 484.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.104, allocations: 8.875 kB / 484.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.309e-05/0.104, allocations: 38.69 kB / 484.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.369e-05/0.104, allocations: 4.938 kB / 484.8 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.1041, allocations: 168.2 kB / 484.9 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.1042, allocations: 8.375 kB / 484.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.154e-05/0.1042, allocations: 8.359 kB / 484.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.1043, allocations: 57.94 kB / 485 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1043, allocations: 3.938 kB / 485 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-06/0.1043, allocations: 4 kB / 485 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.1044, allocations: 0 / 485 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.334e-05/0.1044, allocations: 27.97 kB / 485 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/0.1046, allocations: 165.7 kB / 485.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.1048, allocations: 58.83 kB / 485.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.525e-05/0.1048, allocations: 32.8 kB / 485.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002745/0.1051, allocations: 113.1 kB / 485.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.1052, allocations: 42.44 kB / 485.4 MB, free: 1.605 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.1052, allocations: 0 / 485.4 MB, free: 1.605 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.1541/0.2593, allocations: 6.621 MB / 492.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.2594, allocations: 55.41 kB / 492.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.661e-05/0.2595, allocations: 97.86 kB / 492.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.2595, allocations: 25.7 kB / 492.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.518e-05/0.2595, allocations: 88.12 kB / 492.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.903e-05/0.2596, allocations: 63.09 kB / 492.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.461e-05/0.2597, allocations: 25.72 kB / 492.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.613e-05/0.2598, allocations: 322.8 kB / 492.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005583/0.2604, allocations: 243.8 kB / 493 MB, free: 10 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005323/0.2609, allocations: 243.8 kB / 493.2 MB, free: 9.762 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002148/0.2631, allocations: 0.5924 MB / 493.8 MB, free: 9.168 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2631, allocations: 0 / 493.8 MB, free: 9.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001814/0.2649, allocations: 0.6417 MB / 494.4 MB, free: 8.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.2649, allocations: 4.469 kB / 494.4 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.265, allocations: 0 / 494.4 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.265, allocations: 0 / 494.4 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006463/0.2656, allocations: 123.8 kB / 494.6 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.2656, allocations: 7.938 kB / 494.6 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004515/0.2661, allocations: 27.91 kB / 494.6 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.585e-05/0.2662, allocations: 35.94 kB / 494.6 MB, free: 8.324 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.0001386/0.2663, allocations: 117.8 kB / 494.7 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/0.2664, allocations: 11.91 kB / 494.7 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002175/0.2685, allocations: 0.7615 MB / 495.5 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2686, allocations: 4 kB / 495.5 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2686, allocations: 0 / 495.5 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.2686, allocations: 0 / 495.5 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004008/0.2726, allocations: 1.231 MB / 496.7 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.2726, allocations: 4.438 kB / 496.7 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005447/0.2732, allocations: 107.8 kB / 496.9 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.405e-06/0.2732, allocations: 7.984 kB / 496.9 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.582e-05/0.2732, allocations: 27.95 kB / 496.9 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.2732, allocations: 4 kB / 496.9 MB, free: 5.965 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.2733, allocations: 4 kB / 496.9 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.275, allocations: 0.6094 MB / 497.5 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.275, allocations: 89 kB / 497.6 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.113e-05/0.2751, allocations: 8 kB / 497.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004296/0.2755, allocations: 35.97 kB / 497.6 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.308e-05/0.2755, allocations: 11.98 kB / 497.6 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.707e-05/0.2756, allocations: 27.95 kB / 497.7 MB, free: 5.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.65e-05/0.2756, allocations: 91.2 kB / 497.8 MB, free: 5.039 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2757, allocations: 0 / 497.8 MB, free: 5.039 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001672/0.2773, allocations: 0.6445 MB / 498.4 MB, free: 4.395 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.005026/0.2824, allocations: 1.352 MB / 499.8 MB, free: 2.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.2836, allocations: 479.5 kB / 0.4885 GB, free: 2.527 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.2836, allocations: 0 / 0.4885 GB, free: 2.527 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005343/0.2842, allocations: 220.1 kB / 0.4887 GB, free: 2.312 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.2845, allocations: 15.94 kB / 0.4887 GB, free: 2.297 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003371/0.2879, allocations: 0.6773 MB / 0.4894 GB, free: 1.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.2881, allocations: 0.6967 MB / 0.4901 GB, free: 0.832 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005382/0.2887, allocations: 128.8 kB / 0.4902 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003269/0.289, allocations: 99.27 kB / 0.4903 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.289, allocations: 0 / 0.4903 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2454/0.5344, allocations: 58.01 MB / 0.5469 GB, free: 10.54 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000136/0.5346, allocations: 220.2 kB / 0.5471 GB, free: 10.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.302/2.837, allocations: 0 / 0.5471 GB, free: 10.28 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