Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",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.005142/0.005142, allocations: 104.1 kB / 15.74 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 222.9 MB / 239.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002014/0.002014, allocations: 188.5 kB / 289.7 MB, free: 2.082 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03561/0.03561, allocations: 8.799 MB / 348.7 MB, free: 4.551 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 75.88 kB / 463.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09449, allocations: 51.56 MB / 0.5029 GB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.005758/0.1003, allocations: 2.873 MB / 0.5057 GB, free: 7.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.1018, allocations: 0.6544 MB / 0.5063 GB, free: 6.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003396/0.1022, allocations: 4 kB / 0.5063 GB, free: 6.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002403/0.1024, allocations: 51.5 kB / 0.5064 GB, free: 6.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004227/0.1029, allocations: 95.19 kB / 0.5065 GB, free: 6.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002835/0.1032, allocations: 87.84 kB / 0.5066 GB, free: 6.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005241/0.1037, allocations: 378.4 kB / 0.5069 GB, free: 5.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002912/0.104, allocations: 136.5 kB / 0.5071 GB, free: 5.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002369/0.1043, allocations: 143.5 kB / 0.5072 GB, free: 5.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.1045, allocations: 151.3 kB / 0.5073 GB, free: 5.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.706e-05/0.1046, allocations: 36 kB / 0.5074 GB, free: 5.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.62e-05/0.1047, allocations: 39.94 kB / 0.5074 GB, free: 5.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.063e-05/0.1048, allocations: 75.81 kB / 0.5075 GB, free: 5.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.105, allocations: 171.1 kB / 0.5076 GB, free: 5.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.1055, allocations: 418.4 kB / 0.508 GB, free: 4.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1055, allocations: 0 / 0.508 GB, free: 4.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1055, allocations: 0 / 0.508 GB, free: 4.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.1055, allocations: 3.984 kB / 0.508 GB, free: 4.734 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0009335/0.1064, allocations: 0.6024 MB / 0.5086 GB, free: 4.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.1065, allocations: 8.031 kB / 0.5086 GB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.497e-05/0.1066, allocations: 70.72 kB / 0.5087 GB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.62e-05/0.1067, allocations: 32.75 kB / 0.5087 GB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004035/0.1071, allocations: 271.9 kB / 0.509 GB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.1071, allocations: 21.03 kB / 0.509 GB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/0.1072, allocations: 36.38 kB / 0.5091 GB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005183/0.1077, allocations: 266 kB / 0.5093 GB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.1077, allocations: 8 kB / 0.5093 GB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.1078, allocations: 8 kB / 0.5093 GB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.1078, allocations: 11.94 kB / 0.5093 GB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004485/0.1082, allocations: 210.4 kB / 0.5095 GB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.1098, allocations: 1.041 MB / 0.5106 GB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003755/0.1102, allocations: 146.5 kB / 0.5107 GB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002462/0.1104, allocations: 80.77 kB / 0.5108 GB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.1105, allocations: 4 kB / 0.5108 GB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.1105, allocations: 38.55 kB / 0.5108 GB, free: 1.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.1105, allocations: 0 / 0.5108 GB, free: 1.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001392/0.1119, allocations: 0.6891 MB / 0.5115 GB, free: 0.9453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/0.112, allocations: 55.41 kB / 0.5115 GB, free: 0.8789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.1122, allocations: 195.2 kB / 0.5117 GB, free: 0.6797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.1122, allocations: 33.69 kB / 0.5118 GB, free: 0.6406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.1123, allocations: 184.4 kB / 0.5119 GB, free: 468 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.506e-05/0.1124, allocations: 63.48 kB / 0.512 GB, free: 404 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.12e-05/0.1125, allocations: 41.64 kB / 0.512 GB, free: 356 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1126, allocations: 330.8 kB / 0.5123 GB, free: 16 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.1128, allocations: 63.95 kB / 0.5124 GB, free: 15.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.113, allocations: 100.2 kB / 0.5125 GB, free: 15.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/0.1133, allocations: 169.8 kB / 0.5127 GB, free: 15.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.1133, allocations: 0 / 0.5127 GB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004776/0.1138, allocations: 226.3 kB / 0.5129 GB, free: 15.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.1138, allocations: 4 kB / 0.5129 GB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1138, allocations: 4 kB / 0.5129 GB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001308/0.114, allocations: 24.78 kB / 0.5129 GB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.1142, allocations: 43.98 kB / 0.513 GB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.1152, allocations: 1.371 MB / 0.5143 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.1154, allocations: 16.09 kB / 0.5143 GB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.556e-05/0.1154, allocations: 7.984 kB / 0.5143 GB, free: 13.82 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (22): * Single equations (assignments): 21 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001445/0.1155, allocations: 149.7 kB / 0.5145 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.412e-05/0.1156, allocations: 23.83 kB / 0.5145 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.149e-05/0.1156, allocations: 21.88 kB / 0.5145 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1156, allocations: 4 kB / 0.5145 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1156, allocations: 0 / 0.5145 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1157, allocations: 7.984 kB / 0.5145 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009215/0.1166, allocations: 0.6101 MB / 0.5151 GB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1166, allocations: 0 / 0.5151 GB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002071/0.1168, allocations: 35.92 kB / 0.5151 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.342e-05/0.1169, allocations: 28.91 kB / 0.5152 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.1169, allocations: 0 / 0.5152 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.1179, allocations: 1.375 MB / 0.5165 GB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.118, allocations: 4.031 kB / 0.5165 GB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006462/0.1186, allocations: 379.5 kB / 0.5169 GB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.73e-05/0.1187, allocations: 89.02 kB / 0.517 GB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.1187, allocations: 8.031 kB / 0.517 GB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.1189, allocations: 8 kB / 0.517 GB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.14e-05/0.119, allocations: 19.98 kB / 0.517 GB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.119, allocations: 7.984 kB / 0.517 GB, free: 10.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001384/0.1191, allocations: 144.2 kB / 0.5171 GB, free: 10.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1191, allocations: 0 / 0.5171 GB, free: 10.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003662/0.1195, allocations: 60 kB / 0.5172 GB, free: 10.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.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 (15): * Single equations (assignments): 14 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009704/0.1205, allocations: 0.906 MB / 0.5181 GB, free: 9.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006289/0.1211, allocations: 272.5 kB / 0.5183 GB, free: 9.383 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.1211, allocations: 8.25 kB / 0.5184 GB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003028/0.1215, allocations: 186.6 kB / 0.5185 GB, free: 9.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.1219, allocations: 38.2 kB / 0.5186 GB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00333/0.1252, allocations: 2.564 MB / 0.5211 GB, free: 6.453 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.1256, allocations: 0.7554 MB / 0.5218 GB, free: 5.672 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.022e-05/0.1256, allocations: 21.55 kB / 0.5218 GB, free: 5.652 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.1258, allocations: 79.41 kB / 0.5219 GB, free: 5.574 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1258, allocations: 3.938 kB / 0.5219 GB, free: 5.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.1583, allocations: 4.686 MB / 0.5265 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.505/9.664, allocations: 8.672 kB / 0.5265 GB, free: 0.9922 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Rotational.TestDCPMMachine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)