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.001618/0.001618, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06425/0.06425, allocations: 8.713 MB / 16.79 MB, free: 3.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 221.5 MB / 240.9 MB, free: 13.12 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.001024/0.001024, allocations: 93.94 kB / 293.9 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.698e-05/1.674e-05, allocations: 3.984 kB / 352.7 MB, free: 1.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1217, allocations: 52.55 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3988/0.5205, allocations: 81.45 MB / 486.7 MB, free: 5.613 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001642/0.5207, allocations: 78.84 kB / 486.8 MB, free: 5.574 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01164/0.5323, allocations: 5.051 MB / 491.9 MB, free: 1.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5324, allocations: 0 / 491.9 MB, free: 1.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.5324, allocations: 7.984 kB / 491.9 MB, free: 1.363 MB / 346.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.0004901/0.5329, allocations: 469.5 kB / 492.3 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.5329, allocations: 15.98 kB / 492.3 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.35e-05/0.533, allocations: 27.72 kB / 492.4 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.5333, allocations: 249.3 kB / 492.6 MB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.5333, allocations: 4 kB / 492.6 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/0.5334, allocations: 8 kB / 492.6 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001412/0.5335, allocations: 68.34 kB / 492.7 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001717/0.5337, allocations: 118.3 kB / 492.8 MB, free: 348 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.5337, allocations: 1.125 kB / 492.8 MB, free: 348 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.5338, allocations: 4 kB / 492.8 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.5338, allocations: 4 kB / 492.8 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007608/0.5345, allocations: 0.5934 MB / 493.4 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.5347, allocations: 88.31 kB / 493.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.941e-05/0.5348, allocations: 32.86 kB / 493.5 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.5348, allocations: 4 kB / 493.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001494/0.535, allocations: 80.59 kB / 493.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.535, allocations: 4 kB / 493.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002571/0.5352, allocations: 109.5 kB / 493.7 MB, free: 15.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.5353, allocations: 55.41 kB / 493.8 MB, free: 15.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002469/0.5355, allocations: 235.8 kB / 494 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.5356, allocations: 25.7 kB / 494 MB, free: 15.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.721e-05/0.5357, allocations: 148 kB / 494.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.218e-05/0.5357, allocations: 35.55 kB / 494.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-06/0.5357, allocations: 0 / 494.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.5358, allocations: 330.8 kB / 494.5 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.988e-05/0.5359, allocations: 23.98 kB / 494.6 MB, free: 14.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.651e-05/0.536, allocations: 60.3 kB / 494.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.467e-05/0.536, allocations: 38.11 kB / 494.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.536, allocations: 0 / 494.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002218/0.5363, allocations: 133.5 kB / 494.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.5363, allocations: 8 kB / 494.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.5363, allocations: 3.938 kB / 494.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.5363, allocations: 7.953 kB / 494.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.5365, allocations: 23.98 kB / 494.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.5365, allocations: 5.031 kB / 494.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.192e-05/0.5366, allocations: 7.906 kB / 494.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.5366, allocations: 8 kB / 494.8 MB, free: 14.16 MB / 362.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 7.995e-05/0.5367, allocations: 114.3 kB / 495 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001662/0.5368, allocations: 121.4 kB / 495.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.859e-05/0.5369, allocations: 25.36 kB / 495.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002145/0.5371, allocations: 125.9 kB / 495.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.5371, allocations: 3.984 kB / 495.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5371, allocations: 0 / 495.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.5371, allocations: 0 / 495.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.5373, allocations: 218.7 kB / 495.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.5373, allocations: 0 / 495.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.5375, allocations: 19.98 kB / 495.5 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.5375, allocations: 0 / 495.5 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.5375, allocations: 8.875 kB / 495.5 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.5375, allocations: 3.953 kB / 495.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.5375, allocations: 7.125 kB / 495.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.5378, allocations: 188.4 kB / 495.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.026e-05/0.5379, allocations: 100.9 kB / 495.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.159e-05/0.5379, allocations: 4 kB / 495.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.452e-05/0.538, allocations: 1.188 kB / 495.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.538, allocations: 16 kB / 495.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.538, allocations: 4 kB / 495.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001646/0.5382, allocations: 193.6 kB / 496 MB, free: 12.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5382, allocations: 0 / 496 MB, free: 12.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002539/0.5385, allocations: 59.77 kB / 496 MB, free: 12.89 MB / 362.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.001172/0.5396, allocations: 0.956 MB / 497 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001594/0.5398, allocations: 75.92 kB / 497.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5398, allocations: 0 / 497.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.536e-05/0.5399, allocations: 39.94 kB / 497.1 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.5402, allocations: 38.95 kB / 497.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008276/0.541, allocations: 452.1 kB / 497.6 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.5413, allocations: 0.7541 MB / 498.3 MB, free: 10.67 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.877e-05/0.5414, allocations: 25.19 kB / 498.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.436e-05/0.5415, allocations: 63.41 kB / 498.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5415, allocations: 0 / 498.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02222/0.5638, allocations: 3.61 MB / 0.4903 GB, free: 7.059 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/0.564, allocations: 145.2 kB / 0.4904 GB, free: 6.867 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/2.267, allocations: 0 / 0.4904 GB, free: 6.867 MB / 362.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)