Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.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.TestRegRootDerivative,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001376/0.001376, allocations: 114 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001618/0.001618, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2142/0.2142, allocations: 46.1 MB / 343.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 71.45 kB / 417.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1129, allocations: 62.45 MB / 479.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative): time 0.001816/0.1147, allocations: 0.5514 MB / 480.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002763/0.115, allocations: 99.66 kB / 480.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.987e-05/0.1151, allocations: 0 / 480.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.1151, allocations: 0 / 480.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2e-05/0.1151, allocations: 0 / 480.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000179/0.1153, allocations: 15.92 kB / 480.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.525e-05/0.1154, allocations: 19.97 kB / 480.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.335e-05/0.1154, allocations: 0 / 480.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.513e-05/0.1154, allocations: 4 kB / 480.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.274e-05/0.1155, allocations: 19.92 kB / 480.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.1155, allocations: 0 / 480.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.918e-05/0.1156, allocations: 27.97 kB / 480.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.23e-05/0.1156, allocations: 4 kB / 480.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.037e-05/0.1157, allocations: 3.938 kB / 480.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.717e-05/0.1157, allocations: 27.95 kB / 480.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1158, allocations: 3.938 kB / 480.4 MB, free: 4.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1158, allocations: 4 kB / 480.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.1158, allocations: 0 / 480.4 MB, free: 4.711 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004194/0.1162, allocations: 327.6 kB / 480.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.1163, allocations: 8.031 kB / 480.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.353e-05/0.1163, allocations: 34.75 kB / 480.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.43e-05/0.1163, allocations: 0.9375 kB / 480.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.1165, allocations: 164.7 kB / 480.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.1165, allocations: 8.312 kB / 480.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.316e-06/0.1165, allocations: 4.375 kB / 480.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.1166, allocations: 51.97 kB / 481 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1167, allocations: 7.938 kB / 481 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.1167, allocations: 0 / 481 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1167, allocations: 0 / 481 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.954e-05/0.1167, allocations: 12 kB / 481 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003465/0.1171, allocations: 340.9 kB / 481.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.821e-05/0.1172, allocations: 22.52 kB / 481.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.628e-05/0.1172, allocations: 20.86 kB / 481.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.1172, allocations: 0 / 481.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.1173, allocations: 34.64 kB / 481.4 MB, free: 3.512 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.1173, allocations: 0 / 481.4 MB, free: 3.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002077/0.1175, allocations: 57.62 kB / 481.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.1175, allocations: 55.34 kB / 481.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.168e-05/0.1176, allocations: 93.86 kB / 481.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.1177, allocations: 29.83 kB / 481.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.715e-05/0.1177, allocations: 84.14 kB / 481.7 MB, free: 3.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.447e-05/0.1177, allocations: 11.81 kB / 481.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.804e-05/0.1178, allocations: 21.7 kB / 481.7 MB, free: 3.121 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1179, allocations: 310.8 kB / 482 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.501e-05/0.1179, allocations: 8 kB / 482 MB, free: 2.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.737e-05/0.118, allocations: 21.7 kB / 482.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.671e-05/0.118, allocations: 33.66 kB / 482.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.118, allocations: 3.938 kB / 482.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.875e-05/0.1182, allocations: 57.8 kB / 482.2 MB, free: 2.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.1182, allocations: 10.97 kB / 482.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1182, allocations: 3.938 kB / 482.2 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1182, allocations: 0 / 482.2 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.165e-05/0.1183, allocations: 8 kB / 482.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1183, allocations: 7.969 kB / 482.2 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.667e-05/0.1183, allocations: 7.906 kB / 482.2 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.1183, allocations: 8.031 kB / 482.2 MB, free: 2.625 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * 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 9.195e-05/0.1184, allocations: 113.7 kB / 482.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.1185, allocations: 0 / 482.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001431/0.1186, allocations: 65.12 kB / 482.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1186, allocations: 0 / 482.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1186, allocations: 4 kB / 482.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1187, allocations: 0 / 482.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.1188, allocations: 157.6 kB / 482.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1188, allocations: 0 / 482.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.481e-05/0.1189, allocations: 15.98 kB / 482.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1189, allocations: 0 / 482.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.1189, allocations: 192 / 482.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1189, allocations: 4 kB / 482.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1189, allocations: 0 / 482.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001415/0.1191, allocations: 155.5 kB / 482.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-05/0.1191, allocations: 81.02 kB / 482.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.1191, allocations: 0 / 482.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.134e-05/0.1192, allocations: 4 kB / 482.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-05/0.1192, allocations: 7.938 kB / 482.8 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.1192, allocations: 3.984 kB / 482.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.191e-05/0.1193, allocations: 83.28 kB / 482.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1193, allocations: 0 / 482.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002448/0.1195, allocations: 4 kB / 482.9 MB, free: 1.84 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (5): * Single equations (assignments): 5 * 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.0004245/0.12, allocations: 0.6852 MB / 483.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001219/0.1201, allocations: 27.92 kB / 483.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1201, allocations: 0 / 483.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.195e-05/0.1202, allocations: 16 kB / 483.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/0.1204, allocations: 7.938 kB / 483.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003641/0.1207, allocations: 146.5 kB / 483.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002209/0.121, allocations: 0.6807 MB / 484.5 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.396e-05/0.121, allocations: 4 kB / 484.5 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.208e-05/0.121, allocations: 15.42 kB / 484.5 MB, free: 172 kB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1211, allocations: 0 / 484.5 MB, free: 172 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01072/0.1318, allocations: 1.183 MB / 485.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/0.132, allocations: 205.5 kB / 485.9 MB, free: 14.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.692/1.824, allocations: 0 / 485.9 MB, free: 14.87 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRootDerivative/TestRegRootDerivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches