Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW.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.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_thickEdgedOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_thickEdgedOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009498/0.0009498, allocations: 193.9 kB / 16.09 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.5 MB / 243.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000706/0.0007061, allocations: 93.34 kB / 295.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3029/0.3029, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002734/0.0002735, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3321, allocations: 62.95 MB / 0.516 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW): time 0.001709/0.3338, allocations: 1.523 MB / 0.5175 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.3353, allocations: 1.25 MB / 0.5187 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.421e-05/0.3354, allocations: 2.781 kB / 0.5187 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002432/0.3357, allocations: 52.06 kB / 0.5187 GB, free: 35.08 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002298/0.3359, allocations: 83.45 kB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003566/0.3363, allocations: 181.5 kB / 0.519 GB, free: 34.97 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.3366, allocations: 418.1 kB / 0.5194 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.327e-05/0.3367, allocations: 46.73 kB / 0.5194 GB, free: 34.77 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.3369, allocations: 150.8 kB / 0.5196 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.3371, allocations: 174.3 kB / 0.5197 GB, free: 34.64 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.902e-05/0.3371, allocations: 9.25 kB / 0.5198 GB, free: 34.64 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005747/0.3377, allocations: 449 kB / 0.5202 GB, free: 34.5 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.3378, allocations: 125.6 kB / 0.5203 GB, free: 34.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.338, allocations: 208.2 kB / 0.5205 GB, free: 34.32 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004284/0.3384, allocations: 419.6 kB / 0.5209 GB, free: 34.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3385, allocations: 0 / 0.5209 GB, free: 34.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3385, allocations: 0 / 0.5209 GB, free: 34.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.3385, allocations: 0 / 0.5209 GB, free: 34.21 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.0009193/0.3394, allocations: 0.6988 MB / 0.5216 GB, free: 33.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3395, allocations: 11.22 kB / 0.5216 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.92e-05/0.3396, allocations: 96.62 kB / 0.5217 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.332e-05/0.3396, allocations: 51.59 kB / 0.5217 GB, free: 33.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.3399, allocations: 328.7 kB / 0.522 GB, free: 33.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.34, allocations: 28.25 kB / 0.5221 GB, free: 33.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.925e-05/0.34, allocations: 50 kB / 0.5221 GB, free: 33.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008457/0.3409, allocations: 0.6927 MB / 0.5228 GB, free: 33.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.3409, allocations: 0 / 0.5228 GB, free: 33.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/0.341, allocations: 22.86 kB / 0.5228 GB, free: 32.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.451e-05/0.341, allocations: 55.81 kB / 0.5229 GB, free: 32.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009203/0.342, allocations: 0.7367 MB / 0.5236 GB, free: 32.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.3438, allocations: 1.702 MB / 0.5253 GB, free: 31.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005133/0.3443, allocations: 360.6 kB / 0.5256 GB, free: 31.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.3446, allocations: 147.4 kB / 0.5257 GB, free: 31.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.409e-05/0.3446, allocations: 16.62 kB / 0.5258 GB, free: 31.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.3447, allocations: 34.78 kB / 0.5258 GB, free: 31.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.713e-06/0.3447, allocations: 0 / 0.5258 GB, free: 31.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008725/0.3456, allocations: 0.501 MB / 0.5263 GB, free: 31.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.3456, allocations: 54 kB / 0.5263 GB, free: 31.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.346, allocations: 453.8 kB / 0.5268 GB, free: 31.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.346, allocations: 29.7 kB / 0.5268 GB, free: 31.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.3461, allocations: 262.9 kB / 0.527 GB, free: 30.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.628e-05/0.3462, allocations: 96.33 kB / 0.5271 GB, free: 30.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.955e-05/0.3462, allocations: 4 kB / 0.5271 GB, free: 30.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.708e-05/0.3463, allocations: 355.9 kB / 0.5275 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002428/0.3465, allocations: 141.1 kB / 0.5276 GB, free: 30.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/0.3468, allocations: 257.8 kB / 0.5279 GB, free: 30.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005419/0.3474, allocations: 441.8 kB / 0.5283 GB, free: 30.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3474, allocations: 3.938 kB / 0.5283 GB, free: 30.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006763/0.3481, allocations: 493.3 kB / 0.5288 GB, free: 29.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.3481, allocations: 5.5 kB / 0.5288 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3481, allocations: 6.094 kB / 0.5288 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.3481, allocations: 3.125 kB / 0.5288 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005278/0.3487, allocations: 167.5 kB / 0.5289 GB, free: 29.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.3497, allocations: 3.606 MB / 0.5324 GB, free: 26.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002433/0.35, allocations: 75.62 kB / 0.5325 GB, free: 26.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.379e-05/0.35, allocations: 28.05 kB / 0.5325 GB, free: 26.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001809/0.3502, allocations: 214 kB / 0.5328 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.393e-05/0.3503, allocations: 36.72 kB / 0.5328 GB, free: 26.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000922/0.3512, allocations: 0.541 MB / 0.5333 GB, free: 25.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.3512, allocations: 9.844 kB / 0.5333 GB, free: 25.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3512, allocations: 0 / 0.5333 GB, free: 25.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3513, allocations: 7.078 kB / 0.5333 GB, free: 25.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004569/0.3517, allocations: 453.1 kB / 0.5338 GB, free: 25.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3517, allocations: 0 / 0.5338 GB, free: 25.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004887/0.3522, allocations: 138.4 kB / 0.5339 GB, free: 25.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3522, allocations: 0 / 0.5339 GB, free: 25.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.3523, allocations: 17.69 kB / 0.5339 GB, free: 25.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001056/0.3533, allocations: 3.615 MB / 0.5374 GB, free: 22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.3533, allocations: 0 / 0.5374 GB, free: 22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008546/0.3542, allocations: 0.6658 MB / 0.5381 GB, free: 21.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.3544, allocations: 163 kB / 0.5382 GB, free: 21.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.226e-05/0.3544, allocations: 6.625 kB / 0.5383 GB, free: 21.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.3546, allocations: 20.05 kB / 0.5383 GB, free: 21.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.236e-05/0.3547, allocations: 27.12 kB / 0.5383 GB, free: 21.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.3547, allocations: 18.05 kB / 0.5383 GB, free: 21.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002844/0.355, allocations: 340.3 kB / 0.5386 GB, free: 21.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.355, allocations: 6.656 kB / 0.5386 GB, free: 21.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004891/0.3555, allocations: 164.3 kB / 0.5388 GB, free: 21.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (L) * 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 (33): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001195/0.3567, allocations: 1.284 MB / 0.5401 GB, free: 20.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009099/0.3576, allocations: 449.7 kB / 0.5405 GB, free: 20.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3577, allocations: 12 kB / 0.5405 GB, free: 20.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005408/0.3582, allocations: 256.1 kB / 0.5407 GB, free: 20.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.3586, allocations: 42.55 kB / 0.5408 GB, free: 20.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003824/0.3624, allocations: 3.077 MB / 0.5438 GB, free: 18.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.3628, allocations: 0.9016 MB / 0.5447 GB, free: 18.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/0.363, allocations: 173.4 kB / 0.5448 GB, free: 18.09 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.363, allocations: 0 / 0.5448 GB, free: 18.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.257/4.62, allocations: 18.86 MB / 0.5632 GB, free: 8.086 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_thickEdgedOverall_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_thickEdgedOverall_DPMFLOW.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/PressureLoss/Orifice/dp_thickEdgedOverall_DPMFLOW/dp_thickEdgedOverall_DPMFLOW.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_thickEdgedOverall_DPMFLOW.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches