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.005775/0.005775, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.382/1.382, 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.001436/0.001436, allocations: 200.4 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03663/0.03663, allocations: 8.799 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002503/0.002503, allocations: 79.86 kB / 463.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1049, allocations: 51.56 MB / 0.5029 GB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003785/0.1087, allocations: 2.048 MB / 0.5049 GB, free: 7.988 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.1105, allocations: 0.9703 MB / 0.5058 GB, free: 7.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.1107, allocations: 4 kB / 0.5058 GB, free: 7.008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000435/0.1112, allocations: 115.5 kB / 0.506 GB, free: 6.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003182/0.1115, allocations: 115.5 kB / 0.5061 GB, free: 6.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004452/0.112, allocations: 139.5 kB / 0.5062 GB, free: 6.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003148/0.1123, allocations: 211.2 kB / 0.5064 GB, free: 6.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.1125, allocations: 53.58 kB / 0.5064 GB, free: 6.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.1126, allocations: 95.61 kB / 0.5065 GB, free: 6.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/0.1128, allocations: 115.6 kB / 0.5066 GB, free: 6.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.06e-05/0.1129, allocations: 12 kB / 0.5067 GB, free: 6.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001242/0.113, allocations: 43.94 kB / 0.5067 GB, free: 6.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.734e-05/0.1131, allocations: 43.84 kB / 0.5067 GB, free: 6.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.1132, allocations: 91.45 kB / 0.5068 GB, free: 5.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003499/0.1136, allocations: 235 kB / 0.5071 GB, free: 5.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1136, allocations: 3.938 kB / 0.5071 GB, free: 5.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1136, allocations: 0 / 0.5071 GB, free: 5.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.1136, allocations: 0 / 0.5071 GB, free: 5.762 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.0007659/0.1144, allocations: 0.5139 MB / 0.5076 GB, free: 5.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1144, allocations: 8.031 kB / 0.5076 GB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.637e-05/0.1145, allocations: 46.73 kB / 0.5076 GB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.222e-05/0.1145, allocations: 24.8 kB / 0.5076 GB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003716/0.1149, allocations: 244 kB / 0.5079 GB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.1149, allocations: 16.53 kB / 0.5079 GB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.705e-05/0.115, allocations: 19.88 kB / 0.5079 GB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.1153, allocations: 137.5 kB / 0.508 GB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.1153, allocations: 0 / 0.508 GB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.1153, allocations: 8 kB / 0.508 GB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1153, allocations: 0 / 0.508 GB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.1155, allocations: 78.23 kB / 0.5081 GB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008811/0.1164, allocations: 0.6226 MB / 0.5087 GB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002689/0.1167, allocations: 98.61 kB / 0.5088 GB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.844e-05/0.1168, allocations: 36.84 kB / 0.5089 GB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.886e-05/0.1168, allocations: 4 kB / 0.5089 GB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001883/0.117, allocations: 79.38 kB / 0.5089 GB, free: 3.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 3.417e-06/0.117, allocations: 4 kB / 0.5089 GB, free: 3.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003927/0.1174, allocations: 145.5 kB / 0.5091 GB, free: 3.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.1175, allocations: 51.41 kB / 0.5091 GB, free: 3.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002854/0.1178, allocations: 276 kB / 0.5094 GB, free: 3.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.1178, allocations: 25.7 kB / 0.5094 GB, free: 3.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.1179, allocations: 148.2 kB / 0.5096 GB, free: 2.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.51e-05/0.118, allocations: 40.03 kB / 0.5096 GB, free: 2.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-05/0.118, allocations: 29.72 kB / 0.5096 GB, free: 2.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1182, allocations: 338.8 kB / 0.5099 GB, free: 2.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.57e-05/0.1183, allocations: 31.98 kB / 0.51 GB, free: 2.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.1184, allocations: 68.22 kB / 0.51 GB, free: 2.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.1186, allocations: 108.2 kB / 0.5101 GB, free: 2.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1186, allocations: 0 / 0.5101 GB, free: 2.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002782/0.1189, allocations: 149.3 kB / 0.5103 GB, free: 2.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.119, allocations: 8 kB / 0.5103 GB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.119, allocations: 0 / 0.5103 GB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.119, allocations: 4 kB / 0.5103 GB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.1191, allocations: 28.11 kB / 0.5103 GB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.699e-05/0.1192, allocations: 8 kB / 0.5103 GB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.279e-05/0.1192, allocations: 11.89 kB / 0.5103 GB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.1193, allocations: 4 kB / 0.5103 GB, free: 2.098 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.000144/0.1194, allocations: 153.6 kB / 0.5105 GB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.906e-05/0.1194, allocations: 15.91 kB / 0.5105 GB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.741e-05/0.1195, allocations: 25.39 kB / 0.5105 GB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1195, allocations: 0 / 0.5105 GB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.1195, allocations: 4 kB / 0.5105 GB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1195, allocations: 4 kB / 0.5105 GB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000273/0.1198, allocations: 237.5 kB / 0.5108 GB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1198, allocations: 4 kB / 0.5108 GB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.1199, allocations: 15.98 kB / 0.5108 GB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.12, allocations: 3.938 kB / 0.5108 GB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.12, allocations: 8 kB / 0.5108 GB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.12, allocations: 0 / 0.5108 GB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.12, allocations: 0 / 0.5108 GB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003826/0.1204, allocations: 200.8 kB / 0.511 GB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.195e-05/0.1204, allocations: 89.02 kB / 0.5111 GB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.1205, allocations: 0 / 0.5111 GB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.246e-05/0.1205, allocations: 11.98 kB / 0.5111 GB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.1206, allocations: 0 / 0.5111 GB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.1206, allocations: 4 kB / 0.5111 GB, free: 1.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000206/0.1208, allocations: 205.6 kB / 0.5113 GB, free: 1.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1208, allocations: 0 / 0.5113 GB, free: 1.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002602/0.1211, allocations: 43.89 kB / 0.5113 GB, free: 0.9883 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.002059/0.1232, allocations: 1.033 MB / 0.5123 GB, free: 88 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003147/0.1235, allocations: 95.88 kB / 0.5124 GB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1235, allocations: 0 / 0.5124 GB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.881e-05/0.1236, allocations: 36.23 kB / 0.5125 GB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.124, allocations: 49.81 kB / 0.5125 GB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.1268, allocations: 2.088 MB / 0.5145 GB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.1272, allocations: 0.7434 MB / 0.5153 GB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.279e-05/0.1273, allocations: 21.41 kB / 0.5153 GB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.1274, allocations: 67.41 kB / 0.5154 GB, free: 12.86 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1274, allocations: 0 / 0.5154 GB, free: 12.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02916/0.1566, allocations: 4.338 MB / 0.5196 GB, free: 8.613 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/7.968, allocations: 10.81 kB / 0.5196 GB, free: 8.609 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)