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.001195/0.001195, allocations: 112.5 kB / 15.73 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001604/0.001605, allocations: 187.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03564/0.03564, allocations: 8.804 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 79.88 kB / 463.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09454, allocations: 51.57 MB / 0.5029 GB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003915/0.09849, allocations: 2.865 MB / 0.5057 GB, free: 7.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.09975, allocations: 0.6505 MB / 0.5063 GB, free: 6.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002202/0.09999, allocations: 7.938 kB / 0.5063 GB, free: 6.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00019/0.1002, allocations: 51.5 kB / 0.5064 GB, free: 6.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002934/0.1005, allocations: 95.19 kB / 0.5065 GB, free: 6.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001914/0.1007, allocations: 87.84 kB / 0.5065 GB, free: 6.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000398/0.1011, allocations: 378.4 kB / 0.5069 GB, free: 5.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.1014, allocations: 136.5 kB / 0.507 GB, free: 5.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.1016, allocations: 139.5 kB / 0.5072 GB, free: 5.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.1018, allocations: 155.3 kB / 0.5073 GB, free: 5.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.957e-05/0.1019, allocations: 36 kB / 0.5074 GB, free: 5.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.664e-05/0.1019, allocations: 39.94 kB / 0.5074 GB, free: 5.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.446e-05/0.102, allocations: 71.83 kB / 0.5075 GB, free: 5.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.1022, allocations: 171.2 kB / 0.5076 GB, free: 5.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004484/0.1026, allocations: 418.4 kB / 0.508 GB, free: 4.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1026, allocations: 0 / 0.508 GB, free: 4.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1027, allocations: 0 / 0.508 GB, free: 4.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.1027, allocations: 3.938 kB / 0.508 GB, free: 4.754 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.0008892/0.1036, allocations: 0.5962 MB / 0.5086 GB, free: 4.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1036, allocations: 8.031 kB / 0.5086 GB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.35e-05/0.1037, allocations: 74.72 kB / 0.5087 GB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.721e-05/0.1038, allocations: 32.75 kB / 0.5087 GB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.1041, allocations: 275.8 kB / 0.509 GB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.1042, allocations: 28.97 kB / 0.509 GB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.236e-05/0.1042, allocations: 28.38 kB / 0.509 GB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005185/0.1047, allocations: 270 kB / 0.5093 GB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.1048, allocations: 7.984 kB / 0.5093 GB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.1048, allocations: 8 kB / 0.5093 GB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.1048, allocations: 12 kB / 0.5093 GB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004681/0.1053, allocations: 210.5 kB / 0.5095 GB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.1069, allocations: 1.029 MB / 0.5105 GB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003748/0.1073, allocations: 154.4 kB / 0.5107 GB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.1075, allocations: 88.73 kB / 0.5108 GB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.1075, allocations: 0 / 0.5108 GB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.1075, allocations: 34.56 kB / 0.5108 GB, free: 1.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.1076, allocations: 0 / 0.5108 GB, free: 1.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001411/0.109, allocations: 0.6891 MB / 0.5115 GB, free: 0.9609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.109, allocations: 59.41 kB / 0.5115 GB, free: 0.8906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.1093, allocations: 199.2 kB / 0.5117 GB, free: 0.6875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.1093, allocations: 25.7 kB / 0.5117 GB, free: 0.6562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.1094, allocations: 192.3 kB / 0.5119 GB, free: 476 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.043e-05/0.1095, allocations: 63.48 kB / 0.512 GB, free: 412 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.773e-05/0.1096, allocations: 37.7 kB / 0.512 GB, free: 368 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1097, allocations: 334.8 kB / 0.5123 GB, free: 24 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.1099, allocations: 59.97 kB / 0.5124 GB, free: 15.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.1101, allocations: 103 kB / 0.5125 GB, free: 15.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.1105, allocations: 170.1 kB / 0.5127 GB, free: 15.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1105, allocations: 0 / 0.5127 GB, free: 15.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004866/0.111, allocations: 226.3 kB / 0.5129 GB, free: 15.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.111, allocations: 8 kB / 0.5129 GB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.111, allocations: 4.125 kB / 0.5129 GB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001512/0.1112, allocations: 20.84 kB / 0.5129 GB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.1114, allocations: 43.92 kB / 0.5129 GB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001117/0.1125, allocations: 1.375 MB / 0.5143 GB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.1126, allocations: 12.02 kB / 0.5143 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.1126, allocations: 8 kB / 0.5143 GB, free: 13.83 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.0001588/0.1128, allocations: 153.8 kB / 0.5145 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.42e-05/0.1129, allocations: 23.84 kB / 0.5145 GB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.068e-05/0.1129, allocations: 17.88 kB / 0.5145 GB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.1129, allocations: 3.984 kB / 0.5145 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1129, allocations: 0 / 0.5145 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.113, allocations: 0 / 0.5145 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009177/0.1139, allocations: 0.6179 MB / 0.5151 GB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.1139, allocations: 0 / 0.5151 GB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.1141, allocations: 35.92 kB / 0.5151 GB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.662e-05/0.1142, allocations: 24.84 kB / 0.5152 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.1142, allocations: 4 kB / 0.5152 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001029/0.1153, allocations: 1.371 MB / 0.5165 GB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1153, allocations: 0 / 0.5165 GB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006339/0.1159, allocations: 379.7 kB / 0.5169 GB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.878e-05/0.116, allocations: 93.05 kB / 0.517 GB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.116, allocations: 4 kB / 0.517 GB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.1162, allocations: 20 kB / 0.517 GB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.012e-05/0.1163, allocations: 15.97 kB / 0.517 GB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.1163, allocations: 4 kB / 0.517 GB, free: 10.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001428/0.1164, allocations: 148.2 kB / 0.5171 GB, free: 10.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1164, allocations: 7.938 kB / 0.5171 GB, free: 10.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003257/0.1168, allocations: 52 kB / 0.5172 GB, free: 10.62 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.000869/0.1177, allocations: 0.8982 MB / 0.5181 GB, free: 9.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005727/0.1182, allocations: 285.8 kB / 0.5183 GB, free: 9.395 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1183, allocations: 0 / 0.5183 GB, free: 9.395 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002948/0.1186, allocations: 194.6 kB / 0.5185 GB, free: 9.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.119, allocations: 36.23 kB / 0.5186 GB, free: 9.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003512/0.1225, allocations: 2.568 MB / 0.5211 GB, free: 6.461 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.1229, allocations: 0.7593 MB / 0.5218 GB, free: 5.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.922e-05/0.123, allocations: 17.55 kB / 0.5218 GB, free: 5.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.1231, allocations: 79.41 kB / 0.5219 GB, free: 5.582 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1231, allocations: 4 kB / 0.5219 GB, free: 5.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02634/0.1495, allocations: 4.681 MB / 0.5265 GB, free: 1.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.589/9.739, allocations: 3.781 kB / 0.5265 GB, free: 1.004 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)