Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 196.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.174/1.174, allocations: 226.5 MB / 243.4 MB, free: 8.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00077/0.0007701, allocations: 93.05 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2655/0.2655, allocations: 44.83 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002829/0.0002831, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.254, allocations: 62.95 MB / 0.516 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0004932/0.2545, allocations: 264.4 kB / 0.5162 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004962/0.255, allocations: 367.1 kB / 0.5166 GB, free: 36.67 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.962e-05/0.2551, allocations: 0 / 0.5166 GB, free: 36.67 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.009e-05/0.2551, allocations: 3.938 kB / 0.5166 GB, free: 36.66 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.815e-05/0.2551, allocations: 0 / 0.5166 GB, free: 36.66 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.2554, allocations: 105.6 kB / 0.5167 GB, free: 36.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.155e-05/0.2555, allocations: 26.94 kB / 0.5167 GB, free: 36.6 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.43e-05/0.2555, allocations: 7.031 kB / 0.5167 GB, free: 36.6 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.892e-05/0.2556, allocations: 13.36 kB / 0.5167 GB, free: 36.59 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.26e-05/0.2556, allocations: 18.11 kB / 0.5167 GB, free: 36.58 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.2556, allocations: 3 kB / 0.5167 GB, free: 36.58 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.2558, allocations: 150.4 kB / 0.5169 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.062e-05/0.2558, allocations: 6.859 kB / 0.5169 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.2559, allocations: 43.72 kB / 0.5169 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.256, allocations: 79.72 kB / 0.517 GB, free: 36.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.256, allocations: 0 / 0.517 GB, free: 36.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.256, allocations: 0 / 0.517 GB, free: 36.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.865e-06/0.256, allocations: 0 / 0.517 GB, free: 36.47 MB / 378.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.0002721/0.2563, allocations: 369 kB / 0.5173 GB, free: 36.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.2563, allocations: 12.31 kB / 0.5174 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.665e-05/0.2564, allocations: 30.75 kB / 0.5174 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.257e-05/0.2564, allocations: 7.688 kB / 0.5174 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.489e-05/0.2565, allocations: 167.4 kB / 0.5176 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.2565, allocations: 8.312 kB / 0.5176 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.2565, allocations: 9.812 kB / 0.5176 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.2566, allocations: 58.03 kB / 0.5176 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2566, allocations: 0 / 0.5176 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.2567, allocations: 4 kB / 0.5176 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.2567, allocations: 0 / 0.5176 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.627e-05/0.2567, allocations: 32.31 kB / 0.5177 GB, free: 35.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001142/0.2568, allocations: 168.7 kB / 0.5178 GB, free: 35.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.257, allocations: 53.67 kB / 0.5179 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.663e-05/0.2571, allocations: 22.89 kB / 0.5179 GB, free: 35.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000239/0.2573, allocations: 120 kB / 0.518 GB, free: 35.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.295e-05/0.2573, allocations: 38.5 kB / 0.518 GB, free: 35.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.223e-06/0.2573, allocations: 0 / 0.518 GB, free: 35.39 MB / 378.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.1266/0.384, allocations: 6.617 MB / 0.5245 GB, free: 34.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.3841, allocations: 62.31 kB / 0.5246 GB, free: 34.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.062e-05/0.3841, allocations: 106.9 kB / 0.5247 GB, free: 34.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.3842, allocations: 29.7 kB / 0.5247 GB, free: 34.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.742e-05/0.3842, allocations: 83.08 kB / 0.5248 GB, free: 34.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.3842, allocations: 63.89 kB / 0.5248 GB, free: 34.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.624e-05/0.3843, allocations: 4 kB / 0.5248 GB, free: 34.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.183e-05/0.3843, allocations: 324.9 kB / 0.5252 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004597/0.3848, allocations: 242 kB / 0.5254 GB, free: 33.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004459/0.3852, allocations: 247.7 kB / 0.5256 GB, free: 33.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001882/0.3871, allocations: 0.5854 MB / 0.5262 GB, free: 33.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.3871, allocations: 0 / 0.5262 GB, free: 33.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001611/0.3888, allocations: 0.6375 MB / 0.5268 GB, free: 33.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3888, allocations: 3.062 kB / 0.5268 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3888, allocations: 7.125 kB / 0.5268 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.3888, allocations: 3.938 kB / 0.5268 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006329/0.3895, allocations: 114.1 kB / 0.5269 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.3895, allocations: 0.5625 kB / 0.5269 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004282/0.3899, allocations: 33.72 kB / 0.527 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-05/0.39, allocations: 36.25 kB / 0.527 GB, free: 33.29 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.3901, allocations: 121.2 kB / 0.5271 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.214e-05/0.3901, allocations: 9.438 kB / 0.5271 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.3921, allocations: 0.7626 MB / 0.5279 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3921, allocations: 0.7969 kB / 0.5279 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3921, allocations: 3 kB / 0.5279 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3921, allocations: 0.5625 kB / 0.5279 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/0.3958, allocations: 1.213 MB / 0.5291 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.3958, allocations: 256 / 0.5291 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005254/0.3964, allocations: 115.4 kB / 0.5292 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.3964, allocations: 6.719 kB / 0.5292 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.695e-05/0.3964, allocations: 28.28 kB / 0.5292 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3964, allocations: 3.141 kB / 0.5292 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3964, allocations: 6.406 kB / 0.5292 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.3979, allocations: 0.6173 MB / 0.5298 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.063e-05/0.398, allocations: 87.14 kB / 0.5299 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.77e-05/0.398, allocations: 7.312 kB / 0.5299 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.3985, allocations: 33.61 kB / 0.5299 GB, free: 31.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.909e-05/0.3985, allocations: 15.48 kB / 0.53 GB, free: 31.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.3985, allocations: 31.36 kB / 0.53 GB, free: 31.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.238e-05/0.3986, allocations: 93.5 kB / 0.5301 GB, free: 31.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3986, allocations: 0 / 0.5301 GB, free: 31.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001424/0.4, allocations: 0.6383 MB / 0.5307 GB, free: 31.8 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004364/0.4044, allocations: 1.348 MB / 0.532 GB, free: 30.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.4054, allocations: 480.9 kB / 0.5325 GB, free: 30.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.4054, allocations: 0 / 0.5325 GB, free: 30.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004545/0.4059, allocations: 220 kB / 0.5327 GB, free: 30.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002673/0.4062, allocations: 19.19 kB / 0.5327 GB, free: 30.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.4091, allocations: 0.7185 MB / 0.5334 GB, free: 30.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.897e-05/0.4092, allocations: 0.6938 MB / 0.5341 GB, free: 29.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003289/0.4096, allocations: 99.75 kB / 0.5342 GB, free: 29.66 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4096, allocations: 0 / 0.5342 GB, free: 29.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.821/5.231, allocations: 15.07 MB / 0.5489 GB, free: 22.65 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches