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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001204, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04097/0.04097, allocations: 8.702 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 221.4 MB / 246 MB, free: 3.555 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 98.86 kB / 299.1 MB, free: 2.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.883e-05/3.885e-05, allocations: 4 kB / 359.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3063, allocations: 52.55 MB / 412.2 MB, free: 22.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1118/0.4181, allocations: 82.13 MB / 494.3 MB, free: 4.203 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/0.4184, allocations: 67.97 kB / 494.3 MB, free: 4.137 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01388/0.4323, allocations: 5.103 MB / 499.5 MB, free: 15.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4323, allocations: 0 / 499.5 MB, free: 15.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.914e-05/0.4324, allocations: 7.938 kB / 499.5 MB, free: 15.03 MB / 378.7 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.000654/0.433, allocations: 474 kB / 499.9 MB, free: 14.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.4331, allocations: 12.03 kB / 499.9 MB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.287e-05/0.4331, allocations: 46.55 kB / 500 MB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.4332, allocations: 23.72 kB / 0.4883 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003841/0.4336, allocations: 246.9 kB / 0.4885 GB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.4336, allocations: 8.234 kB / 0.4885 GB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.4337, allocations: 15.98 kB / 0.4885 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002438/0.4339, allocations: 137.4 kB / 0.4887 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.4339, allocations: 4 kB / 0.4887 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.434, allocations: 4 kB / 0.4887 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.434, allocations: 4 kB / 0.4887 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001487/0.4341, allocations: 72.62 kB / 0.4888 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008853/0.435, allocations: 0.6225 MB / 0.4894 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.4352, allocations: 98.62 kB / 0.4895 GB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.708e-05/0.4353, allocations: 28.86 kB / 0.4895 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.4353, allocations: 4 kB / 0.4895 GB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/0.4355, allocations: 87.52 kB / 0.4896 GB, free: 12.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.693e-06/0.4355, allocations: 3.938 kB / 0.4896 GB, free: 12.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.000278/0.4358, allocations: 109.5 kB / 0.4897 GB, free: 12.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.4359, allocations: 55.41 kB / 0.4897 GB, free: 12.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002671/0.4361, allocations: 244.2 kB / 0.49 GB, free: 12.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.4362, allocations: 29.7 kB / 0.49 GB, free: 12.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.977e-05/0.4363, allocations: 148 kB / 0.4901 GB, free: 12.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.463e-05/0.4363, allocations: 31.55 kB / 0.4902 GB, free: 12.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-06/0.4363, allocations: 4 kB / 0.4902 GB, free: 12.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.4365, allocations: 335.1 kB / 0.4905 GB, free: 11.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.526e-05/0.4365, allocations: 24 kB / 0.4905 GB, free: 11.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.778e-05/0.4366, allocations: 75.52 kB / 0.4906 GB, free: 11.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.403e-05/0.4367, allocations: 35.95 kB / 0.4906 GB, free: 11.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4367, allocations: 7.938 kB / 0.4906 GB, free: 11.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002328/0.437, allocations: 141.4 kB / 0.4908 GB, free: 11.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.437, allocations: 4 kB / 0.4908 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.437, allocations: 7.953 kB / 0.4908 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.437, allocations: 0 / 0.4908 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.4372, allocations: 31.98 kB / 0.4908 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.4372, allocations: 3.938 kB / 0.4908 GB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.5e-05/0.4373, allocations: 23.83 kB / 0.4908 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.4373, allocations: 4 kB / 0.4908 GB, free: 11.61 MB / 378.7 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 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.463e-05/0.4374, allocations: 118.9 kB / 0.4909 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.4374, allocations: 19.88 kB / 0.491 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002679/0.4377, allocations: 139 kB / 0.4911 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.4377, allocations: 3.953 kB / 0.4911 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.4377, allocations: 4 kB / 0.4911 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4378, allocations: 0 / 0.4911 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002312/0.438, allocations: 253.5 kB / 0.4913 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.438, allocations: 0 / 0.4913 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.4381, allocations: 19.98 kB / 0.4914 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.4381, allocations: 0 / 0.4914 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.4382, allocations: 4 kB / 0.4914 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.4382, allocations: 8 kB / 0.4914 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4382, allocations: 3.953 kB / 0.4914 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003043/0.4385, allocations: 188.8 kB / 0.4916 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.527e-05/0.4386, allocations: 104.8 kB / 0.4917 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.202e-05/0.4386, allocations: 4 kB / 0.4917 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.492e-05/0.4387, allocations: 8 kB / 0.4917 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.4388, allocations: 7.938 kB / 0.4917 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.4388, allocations: 8.062 kB / 0.4917 GB, free: 10.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001824/0.439, allocations: 200.5 kB / 0.4919 GB, free: 10.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.439, allocations: 0 / 0.4919 GB, free: 10.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002631/0.4393, allocations: 55.86 kB / 0.4919 GB, free: 10.38 MB / 378.7 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.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001299/0.4406, allocations: 0.9886 MB / 0.4929 GB, free: 9.488 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001868/0.4408, allocations: 91.86 kB / 0.493 GB, free: 9.398 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4408, allocations: 0 / 0.493 GB, free: 9.398 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.251e-05/0.4409, allocations: 39.94 kB / 0.493 GB, free: 9.359 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.4412, allocations: 32.41 kB / 0.4931 GB, free: 9.328 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009603/0.4421, allocations: 464.6 kB / 0.4935 GB, free: 8.836 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.4425, allocations: 0.7438 MB / 0.4942 GB, free: 8.066 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.866e-05/0.4426, allocations: 37.16 kB / 0.4943 GB, free: 8.031 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.4427, allocations: 59.42 kB / 0.4943 GB, free: 7.973 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4427, allocations: 0 / 0.4943 GB, free: 7.973 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01566/0.4584, allocations: 3.987 MB / 0.4982 GB, free: 4.082 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/0.4586, allocations: 184 kB / 0.4984 GB, free: 3.848 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.778/2.236, allocations: 0 / 0.4984 GB, free: 3.848 MB / 378.7 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/linux/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)