Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009549/0.0009549, allocations: 200.7 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.17/1.17, allocations: 226.5 MB / 243.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007073/0.0007073, allocations: 104.3 kB / 295.5 MB, free: 6.695 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.262/0.262, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002676/0.0002677, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2562, allocations: 62.95 MB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.000472/0.2567, allocations: 265.3 kB / 0.5162 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004455/0.2572, allocations: 344.6 kB / 0.5165 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.083e-05/0.2572, allocations: 0 / 0.5165 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.153e-05/0.2572, allocations: 0 / 0.5165 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.466e-05/0.2573, allocations: 0 / 0.5165 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/0.2575, allocations: 78.47 kB / 0.5166 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.371e-05/0.2576, allocations: 24.25 kB / 0.5166 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.285e-05/0.2576, allocations: 6.906 kB / 0.5166 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.819e-05/0.2576, allocations: 17.3 kB / 0.5167 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.229e-05/0.2577, allocations: 14.31 kB / 0.5167 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.166e-05/0.2577, allocations: 2.906 kB / 0.5167 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.2579, allocations: 108.2 kB / 0.5168 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.778e-06/0.2579, allocations: 6.406 kB / 0.5168 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.393e-05/0.2579, allocations: 36.58 kB / 0.5168 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.174e-05/0.258, allocations: 69.38 kB / 0.5169 GB, free: 36.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.258, allocations: 3.938 kB / 0.5169 GB, free: 36.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.258, allocations: 0 / 0.5169 GB, free: 36.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.625e-06/0.258, allocations: 0 / 0.5169 GB, free: 36.68 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.0002519/0.2583, allocations: 360.7 kB / 0.5172 GB, free: 36.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.2583, allocations: 8.438 kB / 0.5172 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.563e-05/0.2584, allocations: 37.12 kB / 0.5173 GB, free: 36.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.84e-05/0.2584, allocations: 4.875 kB / 0.5173 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.921e-05/0.2584, allocations: 171.2 kB / 0.5174 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.2585, allocations: 7.188 kB / 0.5174 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/0.2585, allocations: 3.375 kB / 0.5175 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.2586, allocations: 57.69 kB / 0.5175 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2586, allocations: 3.938 kB / 0.5175 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.2586, allocations: 4 kB / 0.5175 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-06/0.2586, allocations: 0 / 0.5175 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.64e-05/0.2587, allocations: 32.61 kB / 0.5175 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001109/0.2588, allocations: 165.3 kB / 0.5177 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.259, allocations: 55.98 kB / 0.5178 GB, free: 35.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.554e-05/0.259, allocations: 23.48 kB / 0.5178 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00021/0.2592, allocations: 116.9 kB / 0.5179 GB, free: 35.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.578e-05/0.2593, allocations: 37.89 kB / 0.5179 GB, free: 35.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.2593, allocations: 2.875 kB / 0.5179 GB, free: 35.61 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.03884/0.2981, allocations: 2.828 MB / 0.5207 GB, free: 34.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.503e-05/0.2982, allocations: 54.34 kB / 0.5207 GB, free: 34.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.104e-05/0.2982, allocations: 106.9 kB / 0.5208 GB, free: 34.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.2983, allocations: 33.7 kB / 0.5209 GB, free: 34.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.825e-05/0.2983, allocations: 80.14 kB / 0.521 GB, free: 34.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.029e-05/0.2983, allocations: 62.47 kB / 0.521 GB, free: 34.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.598e-05/0.2984, allocations: 4 kB / 0.521 GB, free: 34.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.192e-05/0.2984, allocations: 321.8 kB / 0.5213 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/0.2987, allocations: 195.4 kB / 0.5215 GB, free: 34.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/0.2991, allocations: 186.2 kB / 0.5217 GB, free: 34.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008717/0.2999, allocations: 445.4 kB / 0.5221 GB, free: 33.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.3, allocations: 6.969 kB / 0.5221 GB, free: 33.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008673/0.3008, allocations: 489.8 kB / 0.5226 GB, free: 33.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3009, allocations: 5.406 kB / 0.5226 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.3009, allocations: 0 / 0.5226 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.3009, allocations: 480 / 0.5226 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.3012, allocations: 88.02 kB / 0.5227 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.3012, allocations: 0 / 0.5227 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/0.3014, allocations: 22.14 kB / 0.5227 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.3e-05/0.3015, allocations: 22.19 kB / 0.5227 GB, free: 33.74 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 8.502e-05/0.3016, allocations: 126.6 kB / 0.5228 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.01e-05/0.3016, allocations: 7.125 kB / 0.5228 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.3027, allocations: 0.5751 MB / 0.5234 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3028, allocations: 2.812 kB / 0.5234 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3028, allocations: 7.984 kB / 0.5234 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3028, allocations: 3.328 kB / 0.5234 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.3046, allocations: 0.9467 MB / 0.5243 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3046, allocations: 6.031 kB / 0.5244 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000257/0.3049, allocations: 77.02 kB / 0.5244 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3049, allocations: 5.125 kB / 0.5244 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.3049, allocations: 14.16 kB / 0.5244 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.3049, allocations: 2.938 kB / 0.5244 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3049, allocations: 7.938 kB / 0.5245 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007606/0.3057, allocations: 492.2 kB / 0.5249 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.118e-05/0.3057, allocations: 90.56 kB / 0.525 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.3058, allocations: 6.781 kB / 0.525 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.306, allocations: 25.03 kB / 0.525 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.315e-05/0.306, allocations: 16.48 kB / 0.5251 GB, free: 32.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/0.306, allocations: 17.75 kB / 0.5251 GB, free: 32.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.967e-05/0.306, allocations: 82.19 kB / 0.5251 GB, free: 32.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.306, allocations: 0 / 0.5251 GB, free: 32.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007173/0.3068, allocations: 316.3 kB / 0.5255 GB, free: 32.4 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.002027/0.3088, allocations: 1.15 MB / 0.5266 GB, free: 31.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006806/0.3095, allocations: 372.7 kB / 0.5269 GB, free: 31.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3095, allocations: 0 / 0.5269 GB, free: 31.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002995/0.3098, allocations: 164.8 kB / 0.5271 GB, free: 31.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.3101, allocations: 9.281 kB / 0.5271 GB, free: 31.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.3116, allocations: 0.5844 MB / 0.5277 GB, free: 31.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001014/0.3117, allocations: 0.6969 MB / 0.5283 GB, free: 30.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/0.3119, allocations: 72.34 kB / 0.5284 GB, free: 30.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3119, allocations: 0 / 0.5284 GB, free: 30.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.577/2.889, allocations: 6.157 MB / 0.5344 GB, free: 29.88 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches