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.007947/0.007947, allocations: 99.53 kB / 15.73 MB, free: 5.996 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.437/1.437, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001344/0.001344, allocations: 184.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03706/0.03706, allocations: 8.794 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 75.88 kB / 463.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1022, allocations: 51.56 MB / 0.5029 GB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004159/0.1064, allocations: 2.873 MB / 0.5057 GB, free: 7.164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.1078, allocations: 0.6466 MB / 0.5063 GB, free: 6.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002489/0.108, allocations: 4 kB / 0.5063 GB, free: 6.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002066/0.1083, allocations: 59.44 kB / 0.5064 GB, free: 6.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003107/0.1086, allocations: 91.19 kB / 0.5065 GB, free: 6.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001873/0.1088, allocations: 87.89 kB / 0.5066 GB, free: 6.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004442/0.1093, allocations: 374.4 kB / 0.5069 GB, free: 5.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.1095, allocations: 136.5 kB / 0.507 GB, free: 5.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.1097, allocations: 143.4 kB / 0.5072 GB, free: 5.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.1099, allocations: 155.3 kB / 0.5073 GB, free: 5.473 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.974e-05/0.11, allocations: 36 kB / 0.5074 GB, free: 5.438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.804e-05/0.1101, allocations: 36 kB / 0.5074 GB, free: 5.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.434e-05/0.1101, allocations: 79.7 kB / 0.5075 GB, free: 5.324 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.1103, allocations: 163.3 kB / 0.5076 GB, free: 5.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004179/0.1107, allocations: 414.9 kB / 0.508 GB, free: 4.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1107, allocations: 4 kB / 0.508 GB, free: 4.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1107, allocations: 4 kB / 0.508 GB, free: 4.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.1107, allocations: 0 / 0.508 GB, free: 4.75 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.001036/0.1118, allocations: 0.5888 MB / 0.5086 GB, free: 4.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.1118, allocations: 8.031 kB / 0.5086 GB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.201e-05/0.1119, allocations: 70.66 kB / 0.5087 GB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.842e-05/0.112, allocations: 40.56 kB / 0.5087 GB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.1124, allocations: 279.7 kB / 0.509 GB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.1125, allocations: 21.03 kB / 0.509 GB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.15e-05/0.1125, allocations: 32.38 kB / 0.509 GB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005224/0.113, allocations: 270 kB / 0.5093 GB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.1131, allocations: 4 kB / 0.5093 GB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.244e-05/0.1131, allocations: 12 kB / 0.5093 GB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.1131, allocations: 8 kB / 0.5093 GB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004734/0.1136, allocations: 210.5 kB / 0.5095 GB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.1155, allocations: 1.025 MB / 0.5105 GB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004382/0.116, allocations: 154.5 kB / 0.5107 GB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002024/0.1162, allocations: 76.77 kB / 0.5107 GB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.1162, allocations: 7.938 kB / 0.5107 GB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/0.1163, allocations: 34.56 kB / 0.5108 GB, free: 1.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.094e-06/0.1163, allocations: 4 kB / 0.5108 GB, free: 1.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001724/0.118, allocations: 0.6787 MB / 0.5114 GB, free: 0.9805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.1181, allocations: 51.41 kB / 0.5115 GB, free: 0.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/0.1183, allocations: 207.1 kB / 0.5117 GB, free: 0.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.1183, allocations: 29.7 kB / 0.5117 GB, free: 0.6719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.1184, allocations: 188 kB / 0.5119 GB, free: 496 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.846e-05/0.1185, allocations: 59.16 kB / 0.512 GB, free: 436 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.8e-05/0.1185, allocations: 37.7 kB / 0.512 GB, free: 392 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1187, allocations: 330.8 kB / 0.5123 GB, free: 52 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.1188, allocations: 63.95 kB / 0.5124 GB, free: 15.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.119, allocations: 100.2 kB / 0.5125 GB, free: 15.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004355/0.1195, allocations: 169.5 kB / 0.5126 GB, free: 15.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.1195, allocations: 4 kB / 0.5126 GB, free: 15.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006429/0.1201, allocations: 226.1 kB / 0.5128 GB, free: 15.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.1202, allocations: 9.703 kB / 0.5129 GB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.1202, allocations: 0 / 0.5129 GB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001706/0.1204, allocations: 24.98 kB / 0.5129 GB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002103/0.1206, allocations: 51.89 kB / 0.5129 GB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/0.1217, allocations: 1.371 MB / 0.5143 GB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.1219, allocations: 8.031 kB / 0.5143 GB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.1219, allocations: 8 kB / 0.5143 GB, free: 13.85 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.0001474/0.122, allocations: 145.7 kB / 0.5144 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.863e-05/0.1221, allocations: 31.73 kB / 0.5144 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.1221, allocations: 21.88 kB / 0.5145 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.1221, allocations: 4 kB / 0.5145 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1222, allocations: 0 / 0.5145 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1222, allocations: 0 / 0.5145 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008963/0.1231, allocations: 0.6101 MB / 0.5151 GB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1231, allocations: 0 / 0.5151 GB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.1233, allocations: 35.97 kB / 0.5151 GB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.319e-05/0.1234, allocations: 20.84 kB / 0.5151 GB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.1234, allocations: 4 kB / 0.5151 GB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009455/0.1244, allocations: 1.367 MB / 0.5165 GB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1244, allocations: 3.984 kB / 0.5165 GB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005985/0.125, allocations: 383.9 kB / 0.5168 GB, free: 11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.969e-05/0.125, allocations: 88.92 kB / 0.5169 GB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/0.1251, allocations: 8 kB / 0.5169 GB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.1252, allocations: 16.03 kB / 0.5169 GB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.525e-05/0.1253, allocations: 15.92 kB / 0.517 GB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.1253, allocations: 11.94 kB / 0.517 GB, free: 10.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001339/0.1255, allocations: 152.2 kB / 0.5171 GB, free: 10.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1255, allocations: 0 / 0.5171 GB, free: 10.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003392/0.1258, allocations: 56 kB / 0.5172 GB, free: 10.64 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.000925/0.1268, allocations: 0.9059 MB / 0.518 GB, free: 9.691 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005598/0.1273, allocations: 274.5 kB / 0.5183 GB, free: 9.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1273, allocations: 0 / 0.5183 GB, free: 9.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002776/0.1276, allocations: 182.6 kB / 0.5185 GB, free: 9.219 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004113/0.128, allocations: 44.23 kB / 0.5185 GB, free: 9.176 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003262/0.1313, allocations: 2.547 MB / 0.521 GB, free: 6.504 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.1316, allocations: 0.7593 MB / 0.5218 GB, free: 5.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.3e-05/0.1318, allocations: 17.53 kB / 0.5218 GB, free: 5.703 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.1319, allocations: 83.41 kB / 0.5219 GB, free: 5.621 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.1319, allocations: 0 / 0.5219 GB, free: 5.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0266/0.1585, allocations: 4.75 MB / 0.5265 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.463/9.622, allocations: 9.688 kB / 0.5265 GB, free: 0.9805 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_TestDCPMMachine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)