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.001911/0.001911, allocations: 110.9 kB / 16.41 MB, free: 6.496 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.002017/0.002017, 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.56/1.56, 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.2546/0.2546, allocations: 43.52 MB / 314.1 MB, free: 472 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.002155/0.002155, allocations: 67.89 kB / 441.3 MB, free: 6.215 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1279, allocations: 57.79 MB / 499.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004384/0.1324, allocations: 2.6 MB / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.1339, allocations: 0.6865 MB / 0.4906 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.1341, allocations: 7.938 kB / 0.4906 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.1343, allocations: 43.52 kB / 0.4906 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.1345, allocations: 83.27 kB / 0.4907 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.1348, allocations: 87.81 kB / 0.4908 GB, free: 8.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004173/0.1352, allocations: 334.5 kB / 0.4911 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.1355, allocations: 85.78 kB / 0.4912 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.1357, allocations: 127.5 kB / 0.4913 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.1359, allocations: 127.4 kB / 0.4915 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.261e-05/0.1359, allocations: 24 kB / 0.4915 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.512e-05/0.136, allocations: 24 kB / 0.4915 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.09e-05/0.1361, allocations: 59.77 kB / 0.4916 GB, free: 8.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.1362, allocations: 143.2 kB / 0.4917 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003886/0.1366, allocations: 310.6 kB / 0.492 GB, free: 7.605 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1367, allocations: 0 / 0.492 GB, free: 7.605 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1367, allocations: 0 / 0.492 GB, free: 7.605 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1367, allocations: 0 / 0.492 GB, free: 7.605 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.0009813/0.1377, allocations: 0.5877 MB / 0.4926 GB, free: 6.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.1377, allocations: 19.89 kB / 0.4926 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.181e-05/0.1378, allocations: 62.67 kB / 0.4926 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.69e-05/0.1379, allocations: 32.75 kB / 0.4927 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004267/0.1383, allocations: 263.8 kB / 0.4929 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.165e-05/0.1383, allocations: 24.88 kB / 0.4929 GB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.579e-05/0.1384, allocations: 28.33 kB / 0.493 GB, free: 6.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005256/0.1389, allocations: 290 kB / 0.4932 GB, free: 6.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.139, allocations: 4 kB / 0.4933 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.139, allocations: 8 kB / 0.4933 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.139, allocations: 4 kB / 0.4933 GB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004565/0.1395, allocations: 199.5 kB / 0.4935 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.1413, allocations: 1.31 MB / 0.4947 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.1418, allocations: 242.6 kB / 0.495 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.142, allocations: 103.3 kB / 0.4951 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.1421, allocations: 4 kB / 0.4951 GB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.1421, allocations: 38.55 kB / 0.4951 GB, free: 4.129 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.763e-06/0.1421, allocations: 0 / 0.4951 GB, free: 4.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=32): time 0.002858/0.145, allocations: 1.566 MB / 0.4966 GB, free: 2.355 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.1451, allocations: 140.5 kB / 0.4968 GB, free: 2.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.1454, allocations: 228.9 kB / 0.497 GB, free: 1.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.1454, allocations: 33.7 kB / 0.497 GB, free: 1.914 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.1456, allocations: 176.5 kB / 0.4972 GB, free: 1.738 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1457, allocations: 123 kB / 0.4973 GB, free: 1.617 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.1458, allocations: 70.31 kB / 0.4974 GB, free: 1.543 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.146, allocations: 342.8 kB / 0.4977 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.1463, allocations: 104.8 kB / 0.4978 GB, free: 1.094 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000367/0.1466, allocations: 233.5 kB / 0.498 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006719/0.1473, allocations: 369 kB / 0.4984 GB, free: 396 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1473, allocations: 4 kB / 0.4984 GB, free: 392 kB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008527/0.1482, allocations: 388.9 kB / 0.4987 GB, free: 15.99 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1482, allocations: 8.406 kB / 0.4988 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1482, allocations: 8 kB / 0.4988 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.1483, allocations: 8 kB / 0.4988 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.1487, allocations: 99.81 kB / 0.4989 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.1487, allocations: 7.984 kB / 0.4989 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.1489, allocations: 36.19 kB / 0.4989 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.149, allocations: 16 kB / 0.4989 GB, free: 15.81 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.0001697/0.1491, allocations: 161.6 kB / 0.4991 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.1492, allocations: 23.86 kB / 0.4991 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.555e-05/0.1493, allocations: 41.7 kB / 0.4991 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.1494, allocations: 4 kB / 0.4991 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1494, allocations: 0 / 0.4991 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.627e-06/0.1494, allocations: 7.984 kB / 0.4992 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.151, allocations: 0.9856 MB / 0.5001 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.151, allocations: 0 / 0.5001 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.1514, allocations: 75.89 kB / 0.5002 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.1514, allocations: 8.219 kB / 0.5002 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.1514, allocations: 15.94 kB / 0.5002 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1514, allocations: 4 kB / 0.5002 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.1514, allocations: 4 kB / 0.5002 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.1526, allocations: 0.7289 MB / 0.5009 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.901e-05/0.1527, allocations: 100.9 kB / 0.501 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.295e-05/0.1527, allocations: 12 kB / 0.501 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002929/0.153, allocations: 23.97 kB / 0.5011 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.393e-05/0.1531, allocations: 23.97 kB / 0.5011 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.1531, allocations: 12 kB / 0.5011 GB, free: 13.47 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001551/0.1533, allocations: 156.5 kB / 0.5012 GB, free: 13.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1533, allocations: 0 / 0.5012 GB, free: 13.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004952/0.1538, allocations: 64 kB / 0.5013 GB, free: 13.25 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.001446/0.1552, allocations: 1.282 MB / 0.5026 GB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007248/0.156, allocations: 277 kB / 0.5028 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.156, allocations: 0 / 0.5028 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003233/0.1563, allocations: 132.7 kB / 0.5029 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006975/0.157, allocations: 43.66 kB / 0.503 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005157/0.1622, allocations: 3.511 MB / 0.5064 GB, free: 7.766 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004515/0.1627, allocations: 0.7681 MB / 0.5072 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001667/0.1629, allocations: 30.95 kB / 0.5072 GB, free: 6.941 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.1631, allocations: 99.39 kB / 0.5073 GB, free: 6.844 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1631, allocations: 0 / 0.5073 GB, free: 6.844 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03274/0.1958, allocations: 5.31 MB / 0.5125 GB, free: 1.523 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.789/8.985, allocations: 8 kB / 0.5125 GB, free: 1.516 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