Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.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.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",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.00114/0.00114, allocations: 108 kB / 15.61 MB, free: 152 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.399/1.399, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.001412/0.001412, allocations: 188.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03516/0.03516, allocations: 8.793 MB / 348.5 MB, free: 4.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 78.89 kB / 411.2 MB, free: 42.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09812/0.09958, allocations: 51.56 MB / 462.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003172/0.1028, allocations: 2.038 MB / 464.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.1042, allocations: 0.9625 MB / 465.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.252e-05/0.1043, allocations: 4 kB / 465.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003272/0.1047, allocations: 127.5 kB / 465.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002794/0.105, allocations: 111.5 kB / 466 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.1053, allocations: 135.5 kB / 466.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.1056, allocations: 211.3 kB / 466.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.1057, allocations: 45.64 kB / 466.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.1058, allocations: 95.62 kB / 466.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.106, allocations: 115.6 kB / 466.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.921e-05/0.106, allocations: 12 kB / 466.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.1062, allocations: 51.98 kB / 466.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.416e-05/0.1062, allocations: 43.84 kB / 466.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.712e-05/0.1063, allocations: 87.47 kB / 466.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.1066, allocations: 231.4 kB / 467 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1066, allocations: 4 kB / 467 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1066, allocations: 0 / 467 MB, free: 10.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1066, allocations: 0 / 467 MB, free: 10.05 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006535/0.1073, allocations: 0.5026 MB / 467.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.1073, allocations: 8.031 kB / 467.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.447e-05/0.1074, allocations: 42.75 kB / 467.6 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.042e-05/0.1074, allocations: 28.64 kB / 467.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.1077, allocations: 247.8 kB / 467.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.1077, allocations: 8.609 kB / 467.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.981e-05/0.1078, allocations: 11.94 kB / 467.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.108, allocations: 153.4 kB / 468 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.108, allocations: 0 / 468 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.1081, allocations: 0 / 468 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.1081, allocations: 4 kB / 468 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001579/0.1082, allocations: 68.61 kB / 468.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007598/0.109, allocations: 0.6264 MB / 468.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002487/0.1093, allocations: 94.61 kB / 468.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.754e-05/0.1094, allocations: 36.84 kB / 468.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.1094, allocations: 4 kB / 468.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.1097, allocations: 87.31 kB / 468.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.1097, allocations: 3.938 kB / 468.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004652/0.1102, allocations: 153.3 kB / 469.1 MB, free: 7.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.1102, allocations: 51.41 kB / 469.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.1105, allocations: 268.1 kB / 469.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1105, allocations: 25.7 kB / 469.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.1106, allocations: 144.5 kB / 469.5 MB, free: 7.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.596e-05/0.1107, allocations: 35.55 kB / 469.6 MB, free: 7.238 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.533e-05/0.1108, allocations: 33.7 kB / 469.6 MB, free: 7.199 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1109, allocations: 330.8 kB / 469.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.417e-05/0.111, allocations: 35.92 kB / 470 MB, free: 6.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.914e-05/0.1111, allocations: 64.27 kB / 470 MB, free: 6.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.1113, allocations: 104.2 kB / 470.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1113, allocations: 0 / 470.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002717/0.1116, allocations: 149.3 kB / 470.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1116, allocations: 8.125 kB / 470.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1116, allocations: 4 kB / 470.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.1116, allocations: 4 kB / 470.3 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.1118, allocations: 27.92 kB / 470.3 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.1118, allocations: 4 kB / 470.3 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.719e-05/0.1119, allocations: 15.83 kB / 470.3 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.1119, allocations: 8 kB / 470.3 MB, free: 6.414 MB / 302.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: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001356/0.112, allocations: 146.3 kB / 470.5 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.027e-05/0.1121, allocations: 15.81 kB / 470.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.557e-05/0.1121, allocations: 25.41 kB / 470.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1121, allocations: 3.984 kB / 470.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.1122, allocations: 4 kB / 470.5 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1122, allocations: 0 / 470.5 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000224/0.1124, allocations: 249.4 kB / 470.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1124, allocations: 0 / 470.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.1125, allocations: 19.92 kB / 470.8 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1125, allocations: 0 / 470.8 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.1126, allocations: 8 kB / 470.8 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.1126, allocations: 0 / 470.8 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1126, allocations: 0 / 470.8 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/0.1129, allocations: 196.8 kB / 471 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.414e-05/0.113, allocations: 92.94 kB / 471.1 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.113, allocations: 4 kB / 471.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.05e-05/0.1131, allocations: 4 kB / 471.1 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.1132, allocations: 3.984 kB / 471.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.1132, allocations: 4 kB / 471.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.1134, allocations: 205.7 kB / 471.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1134, allocations: 0 / 471.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002701/0.1136, allocations: 51.83 kB / 471.4 MB, free: 5.309 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001538/0.1152, allocations: 1.031 MB / 472.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002412/0.1154, allocations: 91.84 kB / 472.5 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1155, allocations: 0 / 472.5 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.968e-05/0.1155, allocations: 39.92 kB / 472.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.1159, allocations: 42.53 kB / 472.6 MB, free: 4.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/0.1185, allocations: 2.099 MB / 474.7 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.1188, allocations: 0.7435 MB / 475.4 MB, free: 1.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.552e-05/0.1189, allocations: 17.42 kB / 475.4 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.73e-05/0.119, allocations: 63.41 kB / 475.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.119, allocations: 0 / 475.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02621/0.1452, allocations: 4.229 MB / 479.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.513/7.658, allocations: 7.922 kB / 479.7 MB, free: 13.03 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Rotational.Drive_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1)