Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs",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.001046/0.001046, allocations: 109.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.001083/0.001084, 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.311/1.311, 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.1975/0.1975, allocations: 43.52 MB / 314.1 MB, free: 460 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.001323/0.001323, allocations: 63.89 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1082, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006479/0.1147, allocations: 5.764 MB / 0.493 GB, free: 6.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003887/0.1186, allocations: 2.33 MB / 0.4953 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000714/0.1194, allocations: 35.81 kB / 0.4953 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004896/0.1199, allocations: 230 kB / 0.4955 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000394/0.1203, allocations: 186.3 kB / 0.4957 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009505/0.1213, allocations: 454.9 kB / 0.4961 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000963/0.1222, allocations: 1.118 MB / 0.4972 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007539/0.123, allocations: 0.6185 MB / 0.4978 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003653/0.1234, allocations: 370.7 kB / 0.4982 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003435/0.1237, allocations: 394 kB / 0.4986 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.1239, allocations: 96 kB / 0.4987 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002169/0.1241, allocations: 148 kB / 0.4988 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.1243, allocations: 219.2 kB / 0.499 GB, free: 328 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003642/0.1246, allocations: 469.7 kB / 0.4995 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.1257, allocations: 1.268 MB / 0.5007 GB, free: 14.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1258, allocations: 7.938 kB / 0.5007 GB, free: 14.58 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1258, allocations: 0 / 0.5007 GB, free: 14.58 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.1258, allocations: 7.938 kB / 0.5007 GB, free: 14.57 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001459/0.1273, allocations: 1.152 MB / 0.5018 GB, free: 13.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.1273, allocations: 15.89 kB / 0.5019 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.1274, allocations: 139.9 kB / 0.502 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.1276, allocations: 112.3 kB / 0.5021 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008677/0.1285, allocations: 0.6061 MB / 0.5027 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.877e-05/0.1285, allocations: 66 kB / 0.5028 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.1287, allocations: 99.94 kB / 0.5028 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.1301, allocations: 0.8775 MB / 0.5037 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.744e-05/0.1302, allocations: 7.984 kB / 0.5037 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.437e-05/0.1302, allocations: 40 kB / 0.5038 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.1303, allocations: 24 kB / 0.5038 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009814/0.1312, allocations: 0.5229 MB / 0.5043 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003405/0.1347, allocations: 3.616 MB / 0.5078 GB, free: 6.984 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005338/0.1352, allocations: 222.7 kB / 0.508 GB, free: 6.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.1354, allocations: 100.8 kB / 0.5081 GB, free: 6.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002248/0.1356, allocations: 247.3 kB / 0.5084 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.1357, allocations: 38.55 kB / 0.5084 GB, free: 6.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.053e-06/0.1357, allocations: 0 / 0.5084 GB, free: 6.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002244/0.1379, allocations: 1.324 MB / 0.5097 GB, free: 4.895 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.138, allocations: 59.34 kB / 0.5097 GB, free: 4.824 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003807/0.1383, allocations: 397.9 kB / 0.5101 GB, free: 4.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.1384, allocations: 29.7 kB / 0.5102 GB, free: 4.395 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002636/0.1386, allocations: 483.5 kB / 0.5106 GB, free: 3.914 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.754e-05/0.1388, allocations: 142.8 kB / 0.5108 GB, free: 3.773 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.1389, allocations: 98.2 kB / 0.5108 GB, free: 3.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.139, allocations: 358.8 kB / 0.5112 GB, free: 3.312 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.1392, allocations: 113.1 kB / 0.5113 GB, free: 3.203 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003202/0.1396, allocations: 310.2 kB / 0.5116 GB, free: 2.812 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000541/0.1401, allocations: 452.7 kB / 0.512 GB, free: 2.285 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1401, allocations: 4 kB / 0.512 GB, free: 2.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007441/0.1409, allocations: 0.5171 MB / 0.5125 GB, free: 1.754 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.1409, allocations: 8.062 kB / 0.5125 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1409, allocations: 12 kB / 0.5126 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001699/0.1411, allocations: 40.83 kB / 0.5126 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003646/0.1415, allocations: 135.7 kB / 0.5127 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003821/0.1419, allocations: 0.5524 MB / 0.5133 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.1421, allocations: 16 kB / 0.5133 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.314e-05/0.1421, allocations: 28 kB / 0.5133 GB, free: 0.9375 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002709/0.1424, allocations: 237.6 kB / 0.5135 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.302e-05/0.1425, allocations: 55.61 kB / 0.5136 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006052/0.1431, allocations: 327.3 kB / 0.5139 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1431, allocations: 8 kB / 0.5139 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1431, allocations: 0 / 0.5139 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1431, allocations: 4 kB / 0.5139 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.1445, allocations: 1.046 MB / 0.5149 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1445, allocations: 0 / 0.5149 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003436/0.1449, allocations: 80.06 kB / 0.515 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001203/0.145, allocations: 40.77 kB / 0.515 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.145, allocations: 12 kB / 0.5151 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003417/0.1454, allocations: 0.5523 MB / 0.5156 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1454, allocations: 0 / 0.5156 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000709/0.1461, allocations: 0.5643 MB / 0.5161 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.327e-05/0.1462, allocations: 116.8 kB / 0.5163 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.814e-05/0.1463, allocations: 8 kB / 0.5163 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.1464, allocations: 12 kB / 0.5163 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.1465, allocations: 27.91 kB / 0.5163 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.1465, allocations: 15.98 kB / 0.5163 GB, free: 13.67 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002503/0.1468, allocations: 267.2 kB / 0.5166 GB, free: 13.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1468, allocations: 0 / 0.5166 GB, free: 13.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005131/0.1473, allocations: 124 kB / 0.5167 GB, free: 13.29 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001022/0.1483, allocations: 1.117 MB / 0.5178 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005872/0.1489, allocations: 332.8 kB / 0.5181 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1489, allocations: 0 / 0.5181 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002627/0.1492, allocations: 148.1 kB / 0.5182 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005139/0.1497, allocations: 88.72 kB / 0.5183 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005662/0.1554, allocations: 4.84 MB / 0.523 GB, free: 6.453 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005169/0.156, allocations: 0.9639 MB / 0.524 GB, free: 5.465 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.1561, allocations: 52.55 kB / 0.524 GB, free: 5.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003093/0.1565, allocations: 299.3 kB / 0.5243 GB, free: 5.117 MB / 414.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1565, allocations: 0 / 0.5243 GB, free: 5.117 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2229/0.3793, allocations: 9.351 MB / 0.5335 GB, free: 39.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.91, allocations: 16.03 kB / 0.5335 GB, free: 39.65 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches