Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative.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.TestRegRoot2ZeroDerivative,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2ZeroDerivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2ZeroDerivative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001157/0.001161, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 226.5 MB / 243.4 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006847/0.0006846, allocations: 97.44 kB / 295.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2811/0.2811, allocations: 44.82 MB / 392.3 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002263/0.0002263, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2505, allocations: 62.97 MB / 0.516 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative): time 0.0004882/0.251, allocations: 260.4 kB / 0.5162 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005204/0.2515, allocations: 371.6 kB / 0.5166 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.852e-05/0.2515, allocations: 0 / 0.5166 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.466e-06/0.2516, allocations: 7.938 kB / 0.5166 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.828e-05/0.2516, allocations: 0 / 0.5166 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.2519, allocations: 108 kB / 0.5167 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.984e-05/0.2519, allocations: 22.83 kB / 0.5167 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.431e-05/0.252, allocations: 2.812 kB / 0.5167 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.88e-05/0.252, allocations: 16.56 kB / 0.5167 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.187e-05/0.252, allocations: 24.42 kB / 0.5167 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.2521, allocations: 2.969 kB / 0.5167 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001941/0.2523, allocations: 147.1 kB / 0.5169 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.121e-05/0.2523, allocations: 13.95 kB / 0.5169 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.61e-05/0.2523, allocations: 39.36 kB / 0.5169 GB, free: 36.6 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.2524, allocations: 83.36 kB / 0.517 GB, free: 36.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2524, allocations: 0 / 0.517 GB, free: 36.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.2524, allocations: 0 / 0.517 GB, free: 36.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.434e-06/0.2524, allocations: 0 / 0.517 GB, free: 36.57 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000219/0.2527, allocations: 358.7 kB / 0.5174 GB, free: 36.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.2527, allocations: 10.12 kB / 0.5174 GB, free: 36.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.659e-05/0.2527, allocations: 33.75 kB / 0.5174 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.803e-05/0.2528, allocations: 11.81 kB / 0.5174 GB, free: 36.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.331e-05/0.2528, allocations: 175.5 kB / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.2529, allocations: 3.25 kB / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.2529, allocations: 10.19 kB / 0.5176 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.315e-05/0.253, allocations: 64.42 kB / 0.5176 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.253, allocations: 0 / 0.5176 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.256e-06/0.253, allocations: 3.938 kB / 0.5177 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.253, allocations: 2.812 kB / 0.5177 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.573e-05/0.2531, allocations: 48.14 kB / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001124/0.2532, allocations: 176.2 kB / 0.5179 GB, free: 35.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.164e-05/0.2533, allocations: 87.5 kB / 0.518 GB, free: 35.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.392e-05/0.2533, allocations: 29.89 kB / 0.518 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002186/0.2536, allocations: 109.8 kB / 0.5181 GB, free: 35.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.889e-06/0.2536, allocations: 41.78 kB / 0.5181 GB, free: 35.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.192e-06/0.2536, allocations: 0 / 0.5181 GB, free: 35.48 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: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=23): time 0.1223/0.3759, allocations: 5.841 MB / 0.5238 GB, free: 34.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/0.3759, allocations: 62.09 kB / 0.5239 GB, free: 34.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.387e-05/0.376, allocations: 92.64 kB / 0.524 GB, free: 34.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.376, allocations: 29.7 kB / 0.524 GB, free: 34.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.236e-05/0.376, allocations: 83.66 kB / 0.5241 GB, free: 34.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.96e-05/0.3761, allocations: 74 kB / 0.5242 GB, free: 34.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.847e-05/0.3761, allocations: 6.75 kB / 0.5242 GB, free: 34.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.899e-05/0.3761, allocations: 314.8 kB / 0.5245 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003183/0.3765, allocations: 147.3 kB / 0.5246 GB, free: 34.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.3768, allocations: 136.8 kB / 0.5247 GB, free: 34.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.3781, allocations: 367.5 kB / 0.5251 GB, free: 34.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3781, allocations: 0 / 0.5251 GB, free: 34.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001065/0.3791, allocations: 399.1 kB / 0.5255 GB, free: 33.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.3792, allocations: 9.969 kB / 0.5255 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.3792, allocations: 0 / 0.5255 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.3792, allocations: 0 / 0.5255 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.3796, allocations: 96.83 kB / 0.5256 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3796, allocations: 0 / 0.5256 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.3798, allocations: 33.89 kB / 0.5256 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.738e-05/0.3798, allocations: 21.67 kB / 0.5256 GB, free: 33.93 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 (23): * Single equations (assignments): 23 * 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 7.666e-05/0.3799, allocations: 126.9 kB / 0.5257 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.3799, allocations: 6.469 kB / 0.5257 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.3812, allocations: 475.4 kB / 0.5262 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3812, allocations: 2.969 kB / 0.5262 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3812, allocations: 3.469 kB / 0.5262 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3812, allocations: 7.938 kB / 0.5262 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/0.3832, allocations: 0.8827 MB / 0.5271 GB, free: 33.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3833, allocations: 0 / 0.5271 GB, free: 33.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002669/0.3835, allocations: 85.06 kB / 0.5272 GB, free: 33.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3835, allocations: 2.812 kB / 0.5272 GB, free: 33.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.3836, allocations: 13.2 kB / 0.5272 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.3836, allocations: 2.906 kB / 0.5272 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3836, allocations: 0 / 0.5272 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.3846, allocations: 483.2 kB / 0.5276 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.792e-05/0.3847, allocations: 84.05 kB / 0.5277 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.3847, allocations: 5.688 kB / 0.5277 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.3849, allocations: 38.05 kB / 0.5278 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.924e-05/0.3849, allocations: 18.97 kB / 0.5278 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.3849, allocations: 18.73 kB / 0.5278 GB, free: 32.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.675e-05/0.385, allocations: 80.62 kB / 0.5279 GB, free: 32.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.385, allocations: 0 / 0.5279 GB, free: 32.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001368/0.3863, allocations: 0.619 MB / 0.5285 GB, free: 32.78 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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.004032/0.3904, allocations: 1.192 MB / 0.5296 GB, free: 32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008272/0.3912, allocations: 309.8 kB / 0.5299 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3912, allocations: 4 kB / 0.5299 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003483/0.3916, allocations: 160 kB / 0.5301 GB, free: 31.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.3918, allocations: 8.172 kB / 0.5301 GB, free: 31.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/0.3935, allocations: 0.5116 MB / 0.5306 GB, free: 31.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.3936, allocations: 0.6971 MB / 0.5313 GB, free: 30.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.3938, allocations: 53.7 kB / 0.5313 GB, free: 30.88 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3938, allocations: 1.906 kB / 0.5313 GB, free: 30.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.429/4.823, allocations: 13.99 MB / 0.545 GB, free: 25.32 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2ZeroDerivative_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2ZeroDerivative.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2ZeroDerivative/TestRegRoot2ZeroDerivative.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches