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.005205/0.005205, allocations: 103 kB / 15.74 MB, free: 6.059 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.491/1.491, 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.001785/0.001785, allocations: 192.4 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03684/0.03684, allocations: 8.784 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002319/0.002319, allocations: 83.88 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1102, allocations: 51.56 MB / 0.5029 GB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003744/0.114, allocations: 2.038 MB / 0.5049 GB, free: 7.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.1157, allocations: 0.9742 MB / 0.5058 GB, free: 6.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.655e-05/0.1158, allocations: 4 kB / 0.5058 GB, free: 6.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000366/0.1162, allocations: 111.5 kB / 0.5059 GB, free: 6.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002836/0.1165, allocations: 115.5 kB / 0.5061 GB, free: 6.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.1169, allocations: 139.5 kB / 0.5062 GB, free: 6.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003107/0.1172, allocations: 215.2 kB / 0.5064 GB, free: 6.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.1174, allocations: 57.52 kB / 0.5064 GB, free: 6.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.1175, allocations: 95.61 kB / 0.5065 GB, free: 6.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.1177, allocations: 115.6 kB / 0.5066 GB, free: 6.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3e-05/0.1178, allocations: 12 kB / 0.5067 GB, free: 6.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.1179, allocations: 43.98 kB / 0.5067 GB, free: 6.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.336e-05/0.118, allocations: 39.84 kB / 0.5067 GB, free: 6.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.1181, allocations: 91.47 kB / 0.5068 GB, free: 5.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003865/0.1185, allocations: 239 kB / 0.5071 GB, free: 5.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1185, allocations: 0 / 0.5071 GB, free: 5.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1185, allocations: 0 / 0.5071 GB, free: 5.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1185, allocations: 0 / 0.5071 GB, free: 5.703 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007478/0.1193, allocations: 0.5061 MB / 0.5075 GB, free: 5.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.1193, allocations: 8.031 kB / 0.5076 GB, free: 5.137 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.781e-05/0.1194, allocations: 46.73 kB / 0.5076 GB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.303e-05/0.1194, allocations: 24.8 kB / 0.5076 GB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.1198, allocations: 255.9 kB / 0.5079 GB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.1198, allocations: 12.61 kB / 0.5079 GB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.1199, allocations: 15.94 kB / 0.5079 GB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002795/0.1202, allocations: 137.4 kB / 0.508 GB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.1202, allocations: 3.984 kB / 0.508 GB, free: 4.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.1202, allocations: 8 kB / 0.508 GB, free: 4.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.1202, allocations: 0 / 0.508 GB, free: 4.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.1204, allocations: 78.25 kB / 0.5081 GB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008637/0.1213, allocations: 0.6226 MB / 0.5087 GB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.1215, allocations: 98.59 kB / 0.5088 GB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.296e-05/0.1216, allocations: 36.84 kB / 0.5089 GB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.1217, allocations: 4 kB / 0.5089 GB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002051/0.1219, allocations: 79.38 kB / 0.5089 GB, free: 3.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 3.847e-06/0.1219, allocations: 0 / 0.5089 GB, free: 3.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003943/0.1223, allocations: 149.7 kB / 0.5091 GB, free: 3.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.1224, allocations: 63.33 kB / 0.5091 GB, free: 3.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002988/0.1227, allocations: 272 kB / 0.5094 GB, free: 3.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.1227, allocations: 29.7 kB / 0.5094 GB, free: 3.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.1228, allocations: 144.2 kB / 0.5096 GB, free: 2.895 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.303e-05/0.1229, allocations: 39.72 kB / 0.5096 GB, free: 2.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.575e-05/0.1229, allocations: 29.72 kB / 0.5096 GB, free: 2.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1231, allocations: 334.8 kB / 0.5099 GB, free: 2.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.361e-05/0.1232, allocations: 27.98 kB / 0.51 GB, free: 2.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.1233, allocations: 69.95 kB / 0.51 GB, free: 2.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/0.1235, allocations: 100.2 kB / 0.5101 GB, free: 2.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1235, allocations: 0 / 0.5101 GB, free: 2.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002855/0.1238, allocations: 161.3 kB / 0.5103 GB, free: 2.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1238, allocations: 8 kB / 0.5103 GB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1238, allocations: 0 / 0.5103 GB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.1239, allocations: 4 kB / 0.5103 GB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.124, allocations: 27.92 kB / 0.5103 GB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.124, allocations: 4 kB / 0.5103 GB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.495e-05/0.1241, allocations: 15.94 kB / 0.5103 GB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.1241, allocations: 4 kB / 0.5103 GB, free: 2.035 MB / 350.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.0001422/0.1243, allocations: 157.7 kB / 0.5105 GB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.1243, allocations: 15.91 kB / 0.5105 GB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.55e-05/0.1244, allocations: 21.41 kB / 0.5105 GB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1244, allocations: 0 / 0.5105 GB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1244, allocations: 4 kB / 0.5105 GB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.1244, allocations: 3.984 kB / 0.5105 GB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.1246, allocations: 237.5 kB / 0.5108 GB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1247, allocations: 0 / 0.5108 GB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.1248, allocations: 19.92 kB / 0.5108 GB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1248, allocations: 4 kB / 0.5108 GB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.1248, allocations: 4 kB / 0.5108 GB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1248, allocations: 0 / 0.5108 GB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1248, allocations: 0 / 0.5108 GB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004106/0.1252, allocations: 196.8 kB / 0.511 GB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.471e-05/0.1253, allocations: 93.17 kB / 0.5111 GB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.1253, allocations: 3.984 kB / 0.5111 GB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.784e-05/0.1254, allocations: 7.938 kB / 0.5111 GB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.008e-05/0.1254, allocations: 8.062 kB / 0.5111 GB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.1255, allocations: 7.984 kB / 0.5111 GB, free: 1.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002328/0.1257, allocations: 201.6 kB / 0.5113 GB, free: 0.9648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1257, allocations: 0 / 0.5113 GB, free: 0.9648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002503/0.126, allocations: 47.88 kB / 0.5113 GB, free: 0.918 MB / 350.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.002048/0.128, allocations: 1.029 MB / 0.5123 GB, free: 24 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002723/0.1283, allocations: 87.84 kB / 0.5124 GB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1283, allocations: 0 / 0.5124 GB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.351e-05/0.1284, allocations: 35.92 kB / 0.5125 GB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.1288, allocations: 54.64 kB / 0.5125 GB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002608/0.1314, allocations: 2.088 MB / 0.5146 GB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.1318, allocations: 0.7512 MB / 0.5153 GB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.541e-05/0.1319, allocations: 17.42 kB / 0.5153 GB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.132, allocations: 59.42 kB / 0.5154 GB, free: 12.81 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.132, allocations: 0 / 0.5154 GB, free: 12.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02825/0.1602, allocations: 4.332 MB / 0.5196 GB, free: 8.559 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.322/8.482, allocations: 11.25 kB / 0.5196 GB, free: 8.551 MB / 366.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)