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.00553/0.00553, allocations: 100.9 kB / 15.73 MB, free: 6.469 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.48/1.48, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001397/0.001397, allocations: 188.5 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03423/0.03424, allocations: 8.801 MB / 348.7 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 79.88 kB / 463.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1113, allocations: 51.57 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.004315/0.1157, allocations: 2.036 MB / 0.5049 GB, free: 7.977 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.1176, allocations: 0.9741 MB / 0.5058 GB, free: 6.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002152/0.1178, allocations: 4 kB / 0.5058 GB, free: 6.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000476/0.1183, allocations: 115.5 kB / 0.5059 GB, free: 6.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004721/0.1188, allocations: 115.5 kB / 0.5061 GB, free: 6.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005364/0.1194, allocations: 131.6 kB / 0.5062 GB, free: 6.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004595/0.1198, allocations: 223.2 kB / 0.5064 GB, free: 6.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.1201, allocations: 45.64 kB / 0.5064 GB, free: 6.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.1203, allocations: 95.62 kB / 0.5065 GB, free: 6.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002636/0.1206, allocations: 111.6 kB / 0.5066 GB, free: 6.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.053e-05/0.1206, allocations: 12 kB / 0.5066 GB, free: 6.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.1208, allocations: 47.92 kB / 0.5067 GB, free: 6.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.014e-05/0.1209, allocations: 51.83 kB / 0.5067 GB, free: 6.062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.121, allocations: 83.48 kB / 0.5068 GB, free: 5.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004709/0.1215, allocations: 235.4 kB / 0.507 GB, free: 5.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.1215, allocations: 0 / 0.507 GB, free: 5.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1215, allocations: 0 / 0.507 GB, free: 5.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.976e-06/0.1215, allocations: 0 / 0.507 GB, free: 5.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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000957/0.1225, allocations: 0.4948 MB / 0.5075 GB, free: 5.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.1226, allocations: 8.031 kB / 0.5075 GB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.378e-05/0.1226, allocations: 46.75 kB / 0.5076 GB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.601e-05/0.1227, allocations: 32.64 kB / 0.5076 GB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005032/0.1232, allocations: 251.8 kB / 0.5079 GB, free: 4.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.1233, allocations: 8.609 kB / 0.5079 GB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.608e-05/0.1233, allocations: 19.88 kB / 0.5079 GB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003163/0.1237, allocations: 138.6 kB / 0.508 GB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.1237, allocations: 4 kB / 0.508 GB, free: 4.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.1237, allocations: 4 kB / 0.508 GB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1237, allocations: 8 kB / 0.508 GB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.1239, allocations: 72.59 kB / 0.5081 GB, free: 4.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008554/0.1248, allocations: 0.6186 MB / 0.5087 GB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.125, allocations: 94.56 kB / 0.5088 GB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.813e-05/0.1251, allocations: 36.89 kB / 0.5088 GB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.1251, allocations: 4 kB / 0.5088 GB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.1253, allocations: 79.38 kB / 0.5089 GB, free: 3.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.1253, allocations: 3.938 kB / 0.5089 GB, free: 3.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003776/0.1257, allocations: 149.4 kB / 0.5091 GB, free: 3.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.1258, allocations: 51.41 kB / 0.5091 GB, free: 3.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002771/0.126, allocations: 279.9 kB / 0.5094 GB, free: 3.141 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.1261, allocations: 29.7 kB / 0.5094 GB, free: 3.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.1262, allocations: 140.1 kB / 0.5095 GB, free: 2.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.1262, allocations: 35.53 kB / 0.5096 GB, free: 2.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.987e-05/0.1263, allocations: 37.7 kB / 0.5096 GB, free: 2.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1265, allocations: 330.8 kB / 0.5099 GB, free: 2.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.634e-05/0.1266, allocations: 27.98 kB / 0.5099 GB, free: 2.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.1267, allocations: 72.27 kB / 0.51 GB, free: 2.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.1269, allocations: 96.22 kB / 0.5101 GB, free: 2.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1269, allocations: 4 kB / 0.5101 GB, free: 2.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003052/0.1272, allocations: 149.3 kB / 0.5102 GB, free: 2.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.1272, allocations: 4 kB / 0.5103 GB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1272, allocations: 0 / 0.5103 GB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.1273, allocations: 7.984 kB / 0.5103 GB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.1274, allocations: 20 kB / 0.5103 GB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.1274, allocations: 11.92 kB / 0.5103 GB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.948e-05/0.1275, allocations: 15.84 kB / 0.5103 GB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.1276, allocations: 12.11 kB / 0.5103 GB, free: 2.102 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.0001642/0.1277, allocations: 145.7 kB / 0.5105 GB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.1278, allocations: 15.81 kB / 0.5105 GB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.581e-05/0.1279, allocations: 21.39 kB / 0.5105 GB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1279, allocations: 4 kB / 0.5105 GB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1279, allocations: 0 / 0.5105 GB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1279, allocations: 0 / 0.5105 GB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002512/0.1281, allocations: 245.5 kB / 0.5107 GB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.1282, allocations: 4 kB / 0.5107 GB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.1283, allocations: 19.94 kB / 0.5108 GB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1283, allocations: 8 kB / 0.5108 GB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.1283, allocations: 3.984 kB / 0.5108 GB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.1283, allocations: 0 / 0.5108 GB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1283, allocations: 384 / 0.5108 GB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003696/0.1287, allocations: 196.6 kB / 0.511 GB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.866e-05/0.1288, allocations: 96.94 kB / 0.511 GB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.1288, allocations: 0 / 0.511 GB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.286e-05/0.1289, allocations: 8.062 kB / 0.5111 GB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.129, allocations: 7.984 kB / 0.5111 GB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.129, allocations: 4 kB / 0.5111 GB, free: 1.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.1292, allocations: 209.6 kB / 0.5113 GB, free: 1.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1292, allocations: 0 / 0.5113 GB, free: 1.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000273/0.1295, allocations: 43.84 kB / 0.5113 GB, free: 0.9844 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.001548/0.131, allocations: 1.026 MB / 0.5123 GB, free: 96 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00025/0.1313, allocations: 87.84 kB / 0.5124 GB, free: 8 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1313, allocations: 0 / 0.5124 GB, free: 8 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.1314, allocations: 35.98 kB / 0.5124 GB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.1318, allocations: 46.91 kB / 0.5125 GB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.1343, allocations: 2.092 MB / 0.5145 GB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.1346, allocations: 0.7396 MB / 0.5152 GB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.336e-05/0.1347, allocations: 21.61 kB / 0.5153 GB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.604e-05/0.1348, allocations: 55.42 kB / 0.5153 GB, free: 12.89 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1348, allocations: 3.938 kB / 0.5153 GB, free: 12.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0219/0.1567, allocations: 4.389 MB / 0.5196 GB, free: 8.586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.605/7.761, allocations: 11.23 kB / 0.5196 GB, free: 8.578 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_Drive_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1)