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.001427/0.001427, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.321/1.321, allocations: 222.9 MB / 238.9 MB, free: 4.766 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.001308/0.001308, allocations: 200.4 kB / 289.1 MB, free: 2.512 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03341/0.03341, allocations: 8.772 MB / 348.1 MB, free: 4.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 85.47 kB / 410.5 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08427/0.08574, allocations: 51.56 MB / 462.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003238/0.08901, allocations: 2.088 MB / 464.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.09046, allocations: 0.9549 MB / 465.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.486e-05/0.09057, allocations: 4 kB / 465.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003702/0.09094, allocations: 115.6 kB / 465.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002187/0.09117, allocations: 95.61 kB / 465.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003028/0.09151, allocations: 123.1 kB / 465.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002581/0.09177, allocations: 203.3 kB / 465.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.09192, allocations: 37.66 kB / 465.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.09204, allocations: 91.56 kB / 465.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001666/0.09222, allocations: 115.5 kB / 465.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.09225, allocations: 8 kB / 465.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.09237, allocations: 47.97 kB / 465.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.875e-05/0.09246, allocations: 47.84 kB / 466 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.09257, allocations: 83.42 kB / 466.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002646/0.09284, allocations: 219.5 kB / 466.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.09285, allocations: 0 / 466.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.09286, allocations: 0 / 466.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.09287, allocations: 0 / 466.3 MB, free: 10.56 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.0007389/0.09361, allocations: 0.4949 MB / 466.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.09366, allocations: 8.031 kB / 466.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.785e-05/0.09371, allocations: 46.73 kB / 466.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.448e-05/0.09377, allocations: 28.66 kB / 466.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.09405, allocations: 244 kB / 467.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.09407, allocations: 8.609 kB / 467.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/0.09411, allocations: 19.94 kB / 467.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000272/0.09439, allocations: 145.4 kB / 467.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.09441, allocations: 3.984 kB / 467.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.09443, allocations: 0 / 467.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.09445, allocations: 7.938 kB / 467.3 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.09461, allocations: 72.66 kB / 467.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007492/0.09537, allocations: 0.6263 MB / 468 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002441/0.09562, allocations: 90.64 kB / 468.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.254e-05/0.09572, allocations: 36.89 kB / 468.1 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.09575, allocations: 7.984 kB / 468.1 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002245/0.09598, allocations: 83.31 kB / 468.2 MB, free: 8.457 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.09599, allocations: 0 / 468.2 MB, free: 8.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003733/0.09637, allocations: 157.6 kB / 468.3 MB, free: 8.297 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.09642, allocations: 51.41 kB / 468.4 MB, free: 8.234 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.09667, allocations: 268.2 kB / 468.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.09669, allocations: 29.64 kB / 468.7 MB, free: 7.926 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.204e-05/0.09678, allocations: 144.1 kB / 468.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/0.09681, allocations: 31.55 kB / 468.9 MB, free: 7.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.357e-05/0.09687, allocations: 33.7 kB / 468.9 MB, free: 7.711 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.09698, allocations: 334.8 kB / 469.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.109e-05/0.09707, allocations: 31.98 kB / 469.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.132e-05/0.09717, allocations: 68.2 kB / 469.3 MB, free: 7.262 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.09734, allocations: 104.2 kB / 469.4 MB, free: 7.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.09735, allocations: 0 / 469.4 MB, free: 7.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002537/0.09761, allocations: 141.4 kB / 469.5 MB, free: 7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.09764, allocations: 8 kB / 469.6 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.09765, allocations: 0 / 469.6 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.09767, allocations: 7.984 kB / 469.6 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.09782, allocations: 23.94 kB / 469.6 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.09784, allocations: 16.09 kB / 469.6 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.412e-05/0.09792, allocations: 11.84 kB / 469.6 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.09794, allocations: 8 kB / 469.6 MB, free: 6.926 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.0001264/0.09807, allocations: 146.3 kB / 469.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.09811, allocations: 15.81 kB / 469.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.969e-05/0.09816, allocations: 25.39 kB / 469.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.09817, allocations: 0 / 469.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.09818, allocations: 4 kB / 469.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.09819, allocations: 0 / 469.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.09842, allocations: 257.3 kB / 470.1 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.09843, allocations: 0 / 470.1 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.09854, allocations: 12 kB / 470.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.09855, allocations: 0 / 470.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.09857, allocations: 11.98 kB / 470.1 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.09858, allocations: 4 kB / 470.1 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.09858, allocations: 0 / 470.1 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003559/0.09894, allocations: 188.8 kB / 470.3 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.82e-05/0.09901, allocations: 97 kB / 470.4 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.839e-05/0.09905, allocations: 4 kB / 470.4 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.137e-05/0.09911, allocations: 4 kB / 470.4 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/0.09916, allocations: 8.016 kB / 470.4 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.09918, allocations: 7.938 kB / 470.4 MB, free: 6.062 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.09934, allocations: 209.5 kB / 470.6 MB, free: 5.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09935, allocations: 0 / 470.6 MB, free: 5.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002426/0.0996, allocations: 43.84 kB / 470.6 MB, free: 5.816 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.001298/0.1009, allocations: 1.023 MB / 471.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000223/0.1011, allocations: 83.91 kB / 471.7 MB, free: 4.844 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1011, allocations: 0 / 471.7 MB, free: 4.844 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.569e-05/0.1012, allocations: 36.17 kB / 471.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.1016, allocations: 41.16 kB / 471.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.1039, allocations: 2.154 MB / 474 MB, free: 2.516 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.1042, allocations: 0.7439 MB / 474.7 MB, free: 1.746 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.021e-05/0.1042, allocations: 13.42 kB / 474.7 MB, free: 1.727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.146e-05/0.1043, allocations: 67.41 kB / 474.8 MB, free: 1.664 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1043, allocations: 0 / 474.8 MB, free: 1.664 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01351/0.1179, allocations: 4.038 MB / 478.8 MB, free: 13.72 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002272/0.1181, allocations: 225 kB / 479.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/1.776, allocations: 3.938 kB / 479.1 MB, free: 13.45 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 & /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)