Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001873/0.001873, allocations: 104.2 kB / 16.41 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002071/0.002071, allocations: 189.5 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2128/0.2128, allocations: 43.53 MB / 314.1 MB, free: 444 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 73.61 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1089, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002904/0.1118, allocations: 1.657 MB / 0.489 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009344/0.1128, allocations: 0.5736 MB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.983e-05/0.1129, allocations: 0 / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.185e-05/0.113, allocations: 11.81 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.953e-05/0.113, allocations: 23.78 kB / 0.4896 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.1133, allocations: 59.81 kB / 0.4897 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001646/0.1135, allocations: 99.77 kB / 0.4898 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.1136, allocations: 43.88 kB / 0.4898 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.434e-05/0.1137, allocations: 39.92 kB / 0.4898 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.1139, allocations: 51.75 kB / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.552e-05/0.1139, allocations: 12 kB / 0.4899 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.027e-05/0.1139, allocations: 8 kB / 0.4899 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.566e-05/0.114, allocations: 27.86 kB / 0.4899 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.906e-05/0.114, allocations: 47.73 kB / 0.49 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.1142, allocations: 103.5 kB / 0.4901 GB, free: 9.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1143, allocations: 0 / 0.4901 GB, free: 9.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1143, allocations: 0 / 0.4901 GB, free: 9.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.1143, allocations: 0 / 0.4901 GB, free: 9.543 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007319/0.115, allocations: 411.1 kB / 0.4905 GB, free: 9.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.1151, allocations: 11.89 kB / 0.4905 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.809e-05/0.1151, allocations: 46.73 kB / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.758e-05/0.1152, allocations: 12.84 kB / 0.4905 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.1154, allocations: 208.1 kB / 0.4907 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.1154, allocations: 4.375 kB / 0.4907 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.469e-05/0.1154, allocations: 8.375 kB / 0.4907 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002001/0.1157, allocations: 89.77 kB / 0.4908 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1157, allocations: 0 / 0.4908 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.1157, allocations: 4 kB / 0.4908 GB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.1157, allocations: 11.98 kB / 0.4908 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001407/0.1159, allocations: 43.97 kB / 0.4909 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005341/0.1164, allocations: 364.6 kB / 0.4912 GB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001439/0.1165, allocations: 54.59 kB / 0.4913 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.349e-05/0.1166, allocations: 40.88 kB / 0.4913 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.1167, allocations: 0 / 0.4913 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001872/0.1168, allocations: 99.28 kB / 0.4914 GB, free: 7.988 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.1169, allocations: 0 / 0.4914 GB, free: 7.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003387/0.1172, allocations: 125.5 kB / 0.4915 GB, free: 7.859 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.1173, allocations: 63.34 kB / 0.4916 GB, free: 7.785 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.1174, allocations: 144.2 kB / 0.4917 GB, free: 7.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.1174, allocations: 29.7 kB / 0.4918 GB, free: 7.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.313e-05/0.1175, allocations: 104.3 kB / 0.4919 GB, free: 7.496 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.527e-05/0.1175, allocations: 35.73 kB / 0.4919 GB, free: 7.461 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-05/0.1176, allocations: 29.72 kB / 0.4919 GB, free: 7.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1177, allocations: 318.8 kB / 0.4922 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.659e-05/0.1178, allocations: 31.92 kB / 0.4923 GB, free: 7.074 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.118, allocations: 83.7 kB / 0.4923 GB, free: 6.965 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.1182, allocations: 123.6 kB / 0.4925 GB, free: 6.816 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1182, allocations: 0 / 0.4925 GB, free: 6.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002662/0.1184, allocations: 145.4 kB / 0.4926 GB, free: 6.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1185, allocations: 8 kB / 0.4926 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.1185, allocations: 0 / 0.4926 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1185, allocations: 4 kB / 0.4926 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.1186, allocations: 23.92 kB / 0.4926 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.1186, allocations: 7.938 kB / 0.4926 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.048e-05/0.1187, allocations: 11.95 kB / 0.4927 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.1187, allocations: 12 kB / 0.4927 GB, free: 6.602 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 (mean1.y,$PRE.mean1.y,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 0.0001216/0.1189, allocations: 137.9 kB / 0.4928 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.9e-05/0.1189, allocations: 11.95 kB / 0.4928 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.352e-05/0.1189, allocations: 8.719 kB / 0.4928 GB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1189, allocations: 3.938 kB / 0.4928 GB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1189, allocations: 7.938 kB / 0.4928 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1189, allocations: 384 / 0.4928 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.1191, allocations: 201.6 kB / 0.493 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1191, allocations: 0 / 0.493 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.163e-05/0.1192, allocations: 11.98 kB / 0.493 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1193, allocations: 7.938 kB / 0.493 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.1193, allocations: 8 kB / 0.493 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1193, allocations: 0 / 0.493 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1193, allocations: 3.938 kB / 0.493 GB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.1196, allocations: 168.9 kB / 0.4932 GB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.456e-05/0.1197, allocations: 85.05 kB / 0.4933 GB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.1197, allocations: 7.969 kB / 0.4933 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.741e-05/0.1198, allocations: 4.062 kB / 0.4933 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.975e-05/0.1198, allocations: 15.92 kB / 0.4933 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.1199, allocations: 4 kB / 0.4933 GB, free: 5.828 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.335e-05/0.1199, allocations: 106.1 kB / 0.4934 GB, free: 5.727 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1199, allocations: 0 / 0.4934 GB, free: 5.727 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002164/0.1202, allocations: 23.98 kB / 0.4934 GB, free: 5.703 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y,rootMeanSquare.mean.y) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006484/0.1208, allocations: 0.7021 MB / 0.4941 GB, free: 4.973 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002002/0.121, allocations: 75.91 kB / 0.4942 GB, free: 4.898 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.121, allocations: 0 / 0.4942 GB, free: 4.898 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.493e-05/0.1211, allocations: 36.09 kB / 0.4942 GB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.1213, allocations: 20.56 kB / 0.4943 GB, free: 4.844 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.1232, allocations: 1.647 MB / 0.4959 GB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.1235, allocations: 0.7041 MB / 0.4966 GB, free: 2.336 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.064e-05/0.1236, allocations: 4.562 kB / 0.4966 GB, free: 2.332 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.317e-05/0.1236, allocations: 31.42 kB / 0.4966 GB, free: 2.301 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1236, allocations: 0 / 0.4966 GB, free: 2.301 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02468/0.1483, allocations: 2.31 MB / 0.4988 GB, free: 15.97 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.671/7.82, allocations: 12.05 kB / 0.4989 GB, free: 15.96 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches