Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.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.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",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.001109/0.001109, allocations: 109.4 kB / 16.41 MB, free: 6.5 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.001125/0.001125, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.312/1.312, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.203/0.203, allocations: 43.53 MB / 314.1 MB, free: 464 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.001464/0.001464, allocations: 64.47 kB / 441.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1021, allocations: 57.79 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003748/0.1058, allocations: 2.62 MB / 0.4899 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.1072, allocations: 0.6825 MB / 0.4906 GB, free: 9.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002868/0.1075, allocations: 8 kB / 0.4906 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002303/0.1077, allocations: 39.52 kB / 0.4906 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000311/0.1081, allocations: 95.2 kB / 0.4907 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003485/0.1084, allocations: 79.89 kB / 0.4908 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000486/0.1089, allocations: 334.5 kB / 0.4911 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.1091, allocations: 89.78 kB / 0.4912 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002565/0.1094, allocations: 131.5 kB / 0.4913 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002164/0.1096, allocations: 127.4 kB / 0.4915 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.1097, allocations: 20 kB / 0.4915 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.127e-05/0.1098, allocations: 24 kB / 0.4915 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.014e-05/0.1098, allocations: 63.75 kB / 0.4916 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.11, allocations: 139.3 kB / 0.4917 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.1104, allocations: 306.6 kB / 0.492 GB, free: 7.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1104, allocations: 0 / 0.492 GB, free: 7.574 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1104, allocations: 0 / 0.492 GB, free: 7.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.1104, allocations: 0 / 0.492 GB, free: 7.574 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001092/0.1115, allocations: 0.596 MB / 0.4926 GB, free: 6.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.1116, allocations: 15.89 kB / 0.4926 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.023e-05/0.1117, allocations: 62.67 kB / 0.4926 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.762e-05/0.1117, allocations: 32.75 kB / 0.4927 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.1121, allocations: 263.8 kB / 0.4929 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.1122, allocations: 20.94 kB / 0.4929 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.1122, allocations: 28.33 kB / 0.493 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004677/0.1127, allocations: 282.1 kB / 0.4932 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.1127, allocations: 11.94 kB / 0.4933 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.932e-05/0.1128, allocations: 8 kB / 0.4933 GB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1128, allocations: 8 kB / 0.4933 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000411/0.1132, allocations: 191.8 kB / 0.4935 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.1149, allocations: 1.302 MB / 0.4947 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.1153, allocations: 250.3 kB / 0.495 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001975/0.1155, allocations: 103.3 kB / 0.4951 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.1156, allocations: 8.141 kB / 0.4951 GB, free: 4.137 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.1156, allocations: 46.67 kB / 0.4951 GB, free: 4.082 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.643e-06/0.1156, allocations: 0 / 0.4951 GB, free: 4.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=32): time 0.002473/0.1181, allocations: 1.561 MB / 0.4966 GB, free: 2.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.1182, allocations: 136.5 kB / 0.4968 GB, free: 2.148 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.1184, allocations: 232.9 kB / 0.497 GB, free: 1.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.1184, allocations: 29.7 kB / 0.497 GB, free: 1.875 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.1185, allocations: 184.5 kB / 0.4972 GB, free: 1.691 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.67e-05/0.1186, allocations: 116.2 kB / 0.4973 GB, free: 1.578 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.1187, allocations: 70.12 kB / 0.4974 GB, free: 1.504 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1188, allocations: 342.8 kB / 0.4977 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.1191, allocations: 100.8 kB / 0.4978 GB, free: 1.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/0.1194, allocations: 237.4 kB / 0.498 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005821/0.12, allocations: 364.8 kB / 0.4984 GB, free: 360 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.12, allocations: 4 kB / 0.4984 GB, free: 356 kB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007479/0.1208, allocations: 405.4 kB / 0.4988 GB, free: 15.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.1208, allocations: 8.062 kB / 0.4988 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.1208, allocations: 8 kB / 0.4988 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.1208, allocations: 4 kB / 0.4988 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003652/0.1212, allocations: 95.88 kB / 0.4989 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.1212, allocations: 15.92 kB / 0.4989 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.1215, allocations: 31.88 kB / 0.4989 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.1215, allocations: 20 kB / 0.4989 GB, free: 15.77 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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.0001331/0.1216, allocations: 157.6 kB / 0.4991 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.812e-05/0.1217, allocations: 27.86 kB / 0.4991 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.363e-05/0.1218, allocations: 33.7 kB / 0.4991 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.329e-06/0.1218, allocations: 4 kB / 0.4992 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1218, allocations: 4 kB / 0.4992 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1218, allocations: 3.984 kB / 0.4992 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.1232, allocations: 0.982 MB / 0.5001 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1232, allocations: 4 kB / 0.5001 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003538/0.1236, allocations: 71.89 kB / 0.5002 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.1236, allocations: 12.05 kB / 0.5002 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.1236, allocations: 15.88 kB / 0.5002 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.1236, allocations: 0 / 0.5002 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1236, allocations: 8.219 kB / 0.5002 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009245/0.1246, allocations: 0.725 MB / 0.5009 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-05/0.1247, allocations: 100.9 kB / 0.501 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.146e-05/0.1247, allocations: 12 kB / 0.501 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002972/0.125, allocations: 23.97 kB / 0.5011 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.1251, allocations: 27.91 kB / 0.5011 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.1251, allocations: 12 kB / 0.5011 GB, free: 13.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001299/0.1252, allocations: 156.5 kB / 0.5013 GB, free: 13.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1252, allocations: 0 / 0.5013 GB, free: 13.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004551/0.1257, allocations: 68 kB / 0.5013 GB, free: 13.21 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.001193/0.1269, allocations: 1.279 MB / 0.5026 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005985/0.1275, allocations: 272.2 kB / 0.5028 GB, free: 11.63 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1275, allocations: 4 kB / 0.5028 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002613/0.1278, allocations: 131.8 kB / 0.503 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006314/0.1284, allocations: 39.92 kB / 0.503 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004083/0.1325, allocations: 3.512 MB / 0.5064 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.1329, allocations: 0.7681 MB / 0.5072 GB, free: 6.934 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001298/0.133, allocations: 34.95 kB / 0.5072 GB, free: 6.898 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.1332, allocations: 95.39 kB / 0.5073 GB, free: 6.805 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1332, allocations: 0 / 0.5073 GB, free: 6.805 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02238/0.1556, allocations: 5.315 MB / 0.5125 GB, free: 1.477 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/7.881, allocations: 11.69 kB / 0.5125 GB, free: 1.469 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches