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.008029/0.008029, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.417/1.417, allocations: 222.9 MB / 239.4 MB, free: 4.441 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.001525/0.001525, allocations: 184.5 kB / 289.7 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05208/0.05208, allocations: 8.794 MB / 348.7 MB, free: 4.551 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 83.86 kB / 463.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1115, allocations: 51.56 MB / 0.5029 GB, free: 9.922 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003853/0.1154, allocations: 2.046 MB / 0.5049 GB, free: 7.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.1173, allocations: 0.9664 MB / 0.5058 GB, free: 6.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.1175, allocations: 7.938 kB / 0.5058 GB, free: 6.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003941/0.1179, allocations: 119.6 kB / 0.506 GB, free: 6.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003247/0.1182, allocations: 111.4 kB / 0.5061 GB, free: 6.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.1186, allocations: 139.5 kB / 0.5062 GB, free: 6.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003379/0.119, allocations: 219.2 kB / 0.5064 GB, free: 6.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.1192, allocations: 49.58 kB / 0.5065 GB, free: 6.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.1194, allocations: 103.6 kB / 0.5065 GB, free: 6.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.1196, allocations: 111.6 kB / 0.5067 GB, free: 6.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.215e-05/0.1196, allocations: 12 kB / 0.5067 GB, free: 6.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.1198, allocations: 47.98 kB / 0.5067 GB, free: 5.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.057e-05/0.1198, allocations: 39.84 kB / 0.5068 GB, free: 5.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.12, allocations: 91.41 kB / 0.5068 GB, free: 5.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004166/0.1204, allocations: 239 kB / 0.5071 GB, free: 5.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1204, allocations: 0 / 0.5071 GB, free: 5.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1204, allocations: 0 / 0.5071 GB, free: 5.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.607e-06/0.1204, allocations: 0 / 0.5071 GB, free: 5.625 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.0009392/0.1214, allocations: 0.5023 MB / 0.5076 GB, free: 5.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1214, allocations: 12.03 kB / 0.5076 GB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.575e-05/0.1215, allocations: 46.73 kB / 0.5076 GB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.046e-05/0.1215, allocations: 20.8 kB / 0.5076 GB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.1219, allocations: 255.9 kB / 0.5079 GB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.1219, allocations: 8.609 kB / 0.5079 GB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.122, allocations: 19.88 kB / 0.5079 GB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003031/0.1223, allocations: 145.4 kB / 0.508 GB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.1223, allocations: 0 / 0.508 GB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.1224, allocations: 4 kB / 0.508 GB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1224, allocations: 4 kB / 0.5081 GB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.1225, allocations: 72.66 kB / 0.5081 GB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.1237, allocations: 0.6265 MB / 0.5087 GB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002543/0.1239, allocations: 94.66 kB / 0.5088 GB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.148e-05/0.124, allocations: 32.84 kB / 0.5089 GB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.1241, allocations: 0 / 0.5089 GB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001928/0.1243, allocations: 91.31 kB / 0.5089 GB, free: 3.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.1243, allocations: 0 / 0.5089 GB, free: 3.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004035/0.1247, allocations: 149.4 kB / 0.5091 GB, free: 3.352 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.1247, allocations: 51.41 kB / 0.5091 GB, free: 3.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/0.125, allocations: 276 kB / 0.5094 GB, free: 3.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.125, allocations: 29.7 kB / 0.5094 GB, free: 2.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.1251, allocations: 144.2 kB / 0.5096 GB, free: 2.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.1252, allocations: 35.73 kB / 0.5096 GB, free: 2.789 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.574e-05/0.1252, allocations: 29.72 kB / 0.5096 GB, free: 2.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.1254, allocations: 338.8 kB / 0.5099 GB, free: 2.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.848e-05/0.1255, allocations: 27.98 kB / 0.51 GB, free: 2.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.1256, allocations: 69.91 kB / 0.51 GB, free: 2.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000178/0.1258, allocations: 104.2 kB / 0.5101 GB, free: 2.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1258, allocations: 0 / 0.5101 GB, free: 2.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002735/0.1261, allocations: 149.4 kB / 0.5103 GB, free: 2.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.1261, allocations: 8 kB / 0.5103 GB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1261, allocations: 0 / 0.5103 GB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1262, allocations: 8.062 kB / 0.5103 GB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.1263, allocations: 27.98 kB / 0.5103 GB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.1263, allocations: 4 kB / 0.5103 GB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.121e-05/0.1264, allocations: 11.95 kB / 0.5103 GB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.1264, allocations: 4 kB / 0.5103 GB, free: 1.973 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.0001328/0.1266, allocations: 159.8 kB / 0.5105 GB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.023e-05/0.1266, allocations: 19.89 kB / 0.5105 GB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.1267, allocations: 17.41 kB / 0.5105 GB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.1267, allocations: 4 kB / 0.5105 GB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1267, allocations: 0 / 0.5105 GB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1267, allocations: 0 / 0.5105 GB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.127, allocations: 249.5 kB / 0.5108 GB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.127, allocations: 0 / 0.5108 GB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.1271, allocations: 19.98 kB / 0.5108 GB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1271, allocations: 0 / 0.5108 GB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.1272, allocations: 0 / 0.5108 GB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1272, allocations: 4 kB / 0.5108 GB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1272, allocations: 0 / 0.5108 GB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004694/0.1277, allocations: 201.1 kB / 0.511 GB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.158e-05/0.1277, allocations: 89.14 kB / 0.5111 GB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.1278, allocations: 7.938 kB / 0.5111 GB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.288e-05/0.1278, allocations: 3.984 kB / 0.5111 GB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.897e-05/0.1279, allocations: 8 kB / 0.5111 GB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.1279, allocations: 11.92 kB / 0.5111 GB, free: 1.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.1281, allocations: 201.6 kB / 0.5113 GB, free: 0.8945 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1281, allocations: 0 / 0.5113 GB, free: 0.8945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002731/0.1284, allocations: 47.95 kB / 0.5113 GB, free: 0.8477 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.001465/0.1298, allocations: 1.023 MB / 0.5123 GB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002345/0.1301, allocations: 84.08 kB / 0.5124 GB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1301, allocations: 8.062 kB / 0.5124 GB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.36e-05/0.1302, allocations: 35.92 kB / 0.5125 GB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.1305, allocations: 44.33 kB / 0.5125 GB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.1332, allocations: 2.088 MB / 0.5145 GB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.1336, allocations: 0.7502 MB / 0.5153 GB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.08e-05/0.1337, allocations: 21.41 kB / 0.5153 GB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.744e-05/0.1338, allocations: 59.41 kB / 0.5154 GB, free: 12.74 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1338, allocations: 0 / 0.5154 GB, free: 12.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0272/0.161, allocations: 4.338 MB / 0.5196 GB, free: 8.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/8.048, allocations: 2.344 kB / 0.5196 GB, free: 8.492 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)