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.005179/0.005179, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03803/0.03803, allocations: 8.795 MB / 24.65 MB, free: 4.113 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.242/1.242, allocations: 223.2 MB / 250.7 MB, free: 6.566 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.0008743/0.0008743, allocations: 101.5 kB / 304 MB, free: 4.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005722/0.0005723, allocations: 12 kB / 367.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2221, allocations: 52.53 MB / 419.7 MB, free: 48.17 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08975/0.3119, allocations: 82.2 MB / 0.4901 GB, free: 6.879 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/0.3121, allocations: 71.97 kB / 0.4902 GB, free: 6.809 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01317/0.3253, allocations: 5.113 MB / 0.4952 GB, free: 1.707 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3253, allocations: 0 / 0.4952 GB, free: 1.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.3253, allocations: 4 kB / 0.4952 GB, free: 1.703 MB / 362.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.0006597/0.326, allocations: 0.499 MB / 0.4957 GB, free: 1.152 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3261, allocations: 8.562 kB / 0.4957 GB, free: 1.145 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.384e-05/0.3261, allocations: 50.55 kB / 0.4957 GB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.227e-05/0.3262, allocations: 27.66 kB / 0.4958 GB, free: 1.059 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.3265, allocations: 246.8 kB / 0.496 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.3265, allocations: 8.234 kB / 0.496 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.986e-05/0.3266, allocations: 12 kB / 0.496 GB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.3268, allocations: 141.4 kB / 0.4962 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3269, allocations: 7.906 kB / 0.4962 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.3269, allocations: 4 kB / 0.4962 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3269, allocations: 8 kB / 0.4962 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.3271, allocations: 72.59 kB / 0.4962 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000806/0.3279, allocations: 0.6187 MB / 0.4968 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.3281, allocations: 110.5 kB / 0.4969 GB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.3281, allocations: 0 / 0.4969 GB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001588/0.3283, allocations: 83.56 kB / 0.497 GB, free: 15.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 2.655e-06/0.3283, allocations: 0 / 0.497 GB, free: 15.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003494/0.3287, allocations: 149.4 kB / 0.4972 GB, free: 15.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/0.3287, allocations: 63.34 kB / 0.4972 GB, free: 15.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.329, allocations: 243.2 kB / 0.4975 GB, free: 15.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.329, allocations: 29.7 kB / 0.4975 GB, free: 15.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.739e-05/0.3291, allocations: 144 kB / 0.4976 GB, free: 14.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.732e-05/0.3291, allocations: 31.55 kB / 0.4977 GB, free: 14.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.156e-06/0.3291, allocations: 8 kB / 0.4977 GB, free: 14.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.409e-05/0.3292, allocations: 330.8 kB / 0.498 GB, free: 14.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.891e-05/0.3293, allocations: 27.98 kB / 0.498 GB, free: 14.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.898e-05/0.3294, allocations: 76.2 kB / 0.4981 GB, free: 14.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.645e-05/0.3295, allocations: 32 kB / 0.4981 GB, free: 14.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.3295, allocations: 0 / 0.4981 GB, free: 14.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002659/0.3298, allocations: 157.2 kB / 0.4983 GB, free: 14.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.3298, allocations: 4.375 kB / 0.4983 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3298, allocations: 0 / 0.4983 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.3298, allocations: 7.953 kB / 0.4983 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.33, allocations: 35.92 kB / 0.4983 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.33, allocations: 3.938 kB / 0.4983 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.254e-05/0.3301, allocations: 15.84 kB / 0.4983 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.3301, allocations: 4 kB / 0.4983 GB, free: 14.22 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.3303, allocations: 146.8 kB / 0.4985 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.3303, allocations: 19.75 kB / 0.4985 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000272/0.3306, allocations: 143 kB / 0.4986 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.3306, allocations: 7.938 kB / 0.4986 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3306, allocations: 0 / 0.4986 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.3306, allocations: 0 / 0.4986 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.3308, allocations: 249.5 kB / 0.4989 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3308, allocations: 0 / 0.4989 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.3309, allocations: 20 kB / 0.4989 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.3309, allocations: 4 kB / 0.4989 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.331, allocations: 3.984 kB / 0.4989 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.331, allocations: 4 kB / 0.4989 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.331, allocations: 3.953 kB / 0.4989 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003347/0.3313, allocations: 205.8 kB / 0.4991 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.701e-05/0.3314, allocations: 100.9 kB / 0.4992 GB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.3315, allocations: 4 kB / 0.4992 GB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.971e-05/0.3315, allocations: 8.062 kB / 0.4992 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.343e-05/0.3316, allocations: 7.984 kB / 0.4992 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.3316, allocations: 7.953 kB / 0.4992 GB, free: 13.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001735/0.3318, allocations: 201.6 kB / 0.4994 GB, free: 13.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3318, allocations: 0 / 0.4994 GB, free: 13.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002597/0.332, allocations: 55.78 kB / 0.4995 GB, free: 12.96 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) * Number of clocked states: 0 () * 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.00134/0.3334, allocations: 1.057 MB / 0.5005 GB, free: 12.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002119/0.3336, allocations: 83.91 kB / 0.5006 GB, free: 11.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3336, allocations: 0 / 0.5006 GB, free: 11.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.07e-05/0.3337, allocations: 51.89 kB / 0.5006 GB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.334, allocations: 32.41 kB / 0.5007 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.3359, allocations: 1.869 MB / 0.5025 GB, free: 9.961 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.3361, allocations: 0.7516 MB / 0.5032 GB, free: 9.184 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.637e-05/0.3362, allocations: 21.42 kB / 0.5032 GB, free: 9.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.364e-05/0.3363, allocations: 59.42 kB / 0.5033 GB, free: 9.102 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3363, allocations: 0 / 0.5033 GB, free: 9.102 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01486/0.3512, allocations: 4.002 MB / 0.5072 GB, free: 5.215 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/0.3514, allocations: 209.4 kB / 0.5074 GB, free: 4.969 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/1.981, allocations: 0 / 0.5074 GB, free: 4.969 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)