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.00162/0.001621, allocations: 109.6 kB / 16.41 MB, free: 6.453 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.001789/0.001789, allocations: 185.5 kB / 17.34 MB, free: 5.734 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.323/1.323, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.1957/0.1957, allocations: 43.52 MB / 314.1 MB, free: 480 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.001605/0.001605, allocations: 71.89 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1062, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003159/0.1094, allocations: 1.653 MB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1105, allocations: 0.5697 MB / 0.4896 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.419e-05/0.1106, allocations: 3.938 kB / 0.4896 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.1107, allocations: 15.8 kB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.711e-05/0.1108, allocations: 15.86 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003182/0.1112, allocations: 59.81 kB / 0.4897 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001809/0.1114, allocations: 107.8 kB / 0.4898 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.1115, allocations: 35.89 kB / 0.4898 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.1117, allocations: 43.91 kB / 0.4898 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.1118, allocations: 47.72 kB / 0.4899 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.978e-05/0.1118, allocations: 12 kB / 0.4899 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.916e-05/0.1118, allocations: 8 kB / 0.4899 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.06e-05/0.1119, allocations: 31.89 kB / 0.4899 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.486e-05/0.112, allocations: 47.73 kB / 0.49 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.1122, allocations: 99.56 kB / 0.4901 GB, free: 9.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1122, allocations: 0 / 0.4901 GB, free: 9.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1122, allocations: 0 / 0.4901 GB, free: 9.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.958e-06/0.1122, allocations: 0 / 0.4901 GB, free: 9.566 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.0008306/0.113, allocations: 414.5 kB / 0.4905 GB, free: 9.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.1131, allocations: 11.89 kB / 0.4905 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.673e-05/0.1131, allocations: 42.75 kB / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.681e-05/0.1132, allocations: 12.84 kB / 0.4905 GB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.1134, allocations: 216.1 kB / 0.4907 GB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.1135, allocations: 8.375 kB / 0.4907 GB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.1135, allocations: 4.375 kB / 0.4907 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002219/0.1137, allocations: 93.77 kB / 0.4908 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1137, allocations: 0 / 0.4908 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.1138, allocations: 3.938 kB / 0.4908 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.1138, allocations: 4 kB / 0.4908 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/0.1139, allocations: 51.91 kB / 0.4909 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005435/0.1145, allocations: 364.6 kB / 0.4912 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001361/0.1146, allocations: 58.52 kB / 0.4913 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.791e-05/0.1147, allocations: 28.95 kB / 0.4913 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.1147, allocations: 4 kB / 0.4913 GB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002092/0.1149, allocations: 95.34 kB / 0.4914 GB, free: 8.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.115, allocations: 0 / 0.4914 GB, free: 8.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003419/0.1153, allocations: 125.5 kB / 0.4915 GB, free: 7.883 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.1154, allocations: 59.34 kB / 0.4916 GB, free: 7.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.1155, allocations: 156.2 kB / 0.4917 GB, free: 7.652 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.1155, allocations: 29.64 kB / 0.4918 GB, free: 7.617 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.593e-05/0.1156, allocations: 112.3 kB / 0.4919 GB, free: 7.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.1156, allocations: 27.75 kB / 0.4919 GB, free: 7.477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.608e-05/0.1157, allocations: 33.7 kB / 0.4919 GB, free: 7.438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1158, allocations: 318.8 kB / 0.4922 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.579e-05/0.1159, allocations: 27.98 kB / 0.4923 GB, free: 7.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.116, allocations: 79.72 kB / 0.4923 GB, free: 6.984 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.1162, allocations: 127.6 kB / 0.4925 GB, free: 6.832 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1162, allocations: 0 / 0.4925 GB, free: 6.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002508/0.1165, allocations: 137.5 kB / 0.4926 GB, free: 6.691 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.1165, allocations: 4 kB / 0.4926 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.1165, allocations: 4 kB / 0.4926 GB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.1165, allocations: 7.984 kB / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.1167, allocations: 23.94 kB / 0.4926 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.1167, allocations: 11.92 kB / 0.4926 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.696e-05/0.1168, allocations: 12.33 kB / 0.4927 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.1168, allocations: 8 kB / 0.4927 GB, free: 6.621 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.0001074/0.1169, allocations: 137.8 kB / 0.4928 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.1169, allocations: 11.95 kB / 0.4928 GB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.617e-05/0.117, allocations: 16.64 kB / 0.4928 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.117, allocations: 0 / 0.4928 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.117, allocations: 7.938 kB / 0.4928 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.117, allocations: 0 / 0.4928 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000161/0.1172, allocations: 201.6 kB / 0.493 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1172, allocations: 0 / 0.493 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.587e-05/0.1173, allocations: 8 kB / 0.493 GB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.1173, allocations: 3.984 kB / 0.493 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.1173, allocations: 4 kB / 0.493 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1173, allocations: 4 kB / 0.493 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1173, allocations: 3.938 kB / 0.493 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003278/0.1177, allocations: 168.9 kB / 0.4932 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.1177, allocations: 81.06 kB / 0.4933 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.1178, allocations: 7.969 kB / 0.4933 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.85e-05/0.1178, allocations: 12.05 kB / 0.4933 GB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.1179, allocations: 7.938 kB / 0.4933 GB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.1179, allocations: 7.984 kB / 0.4933 GB, free: 5.852 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.457e-05/0.118, allocations: 104 kB / 0.4934 GB, free: 5.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.118, allocations: 0 / 0.4934 GB, free: 5.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002246/0.1182, allocations: 20 kB / 0.4934 GB, free: 5.73 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.0006043/0.1188, allocations: 0.7059 MB / 0.4941 GB, free: 4.996 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002331/0.1191, allocations: 84.14 kB / 0.4942 GB, free: 4.914 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1191, allocations: 4 kB / 0.4942 GB, free: 4.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.275e-05/0.1192, allocations: 31.98 kB / 0.4942 GB, free: 4.879 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.1194, allocations: 19.23 kB / 0.4943 GB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.1212, allocations: 1.643 MB / 0.4959 GB, free: 3.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.1215, allocations: 0.7041 MB / 0.4965 GB, free: 2.359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.878e-05/0.1215, allocations: 8.547 kB / 0.4966 GB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.016e-05/0.1216, allocations: 35.42 kB / 0.4966 GB, free: 2.316 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1216, allocations: 0 / 0.4966 GB, free: 2.316 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02082/0.1424, allocations: 2.299 MB / 0.4988 GB, free: 8 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.378/7.52, allocations: 16.03 kB / 0.4989 GB, free: 15.99 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