Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TestBrush.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.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",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.00529/0.00529, allocations: 170.2 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.0398/0.0398, allocations: 8.792 MB / 24.64 MB, free: 4.086 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.259/1.259, allocations: 223.2 MB / 250.7 MB, free: 6.59 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.0009402/0.00094, allocations: 100.8 kB / 304 MB, free: 4.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003208/0.0003208, allocations: 8 kB / 367.1 MB, free: 4.859 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2322, allocations: 52.54 MB / 419.7 MB, free: 48.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09219/0.3245, allocations: 78.93 MB / 498.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.3247, allocations: 67.97 kB / 498.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004903/0.3296, allocations: 1.938 MB / 0.4889 GB, free: 8.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.787e-06/0.3296, allocations: 4 kB / 0.4889 GB, free: 8.156 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.3296, allocations: 0 / 0.4889 GB, free: 8.156 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004504/0.3301, allocations: 390.4 kB / 0.4893 GB, free: 7.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3301, allocations: 12.56 kB / 0.4893 GB, free: 7.719 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.614e-05/0.3302, allocations: 46.44 kB / 0.4893 GB, free: 7.664 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.646e-05/0.3302, allocations: 7.906 kB / 0.4893 GB, free: 7.656 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.3304, allocations: 179 kB / 0.4895 GB, free: 7.441 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.3304, allocations: 0 / 0.4895 GB, free: 7.441 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.3304, allocations: 11.94 kB / 0.4895 GB, free: 7.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.3306, allocations: 89.64 kB / 0.4896 GB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.3306, allocations: 3.938 kB / 0.4896 GB, free: 7.332 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.3307, allocations: 8 kB / 0.4896 GB, free: 7.324 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3307, allocations: 3.953 kB / 0.4896 GB, free: 7.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.3309, allocations: 71.95 kB / 0.4897 GB, free: 7.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005959/0.3315, allocations: 411.4 kB / 0.4901 GB, free: 6.793 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/0.3316, allocations: 46.5 kB / 0.4901 GB, free: 6.738 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.3317, allocations: 4 kB / 0.4901 GB, free: 6.734 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.3317, allocations: 34.62 kB / 0.4901 GB, free: 6.691 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.3317, allocations: 0 / 0.4901 GB, free: 6.691 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003573/0.3321, allocations: 109.6 kB / 0.4903 GB, free: 6.578 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.3321, allocations: 55.41 kB / 0.4903 GB, free: 6.512 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.019e-05/0.3322, allocations: 109 kB / 0.4904 GB, free: 6.398 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.3322, allocations: 29.7 kB / 0.4904 GB, free: 6.363 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.59e-05/0.3323, allocations: 104 kB / 0.4905 GB, free: 6.258 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.054e-05/0.3323, allocations: 7.891 kB / 0.4905 GB, free: 6.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-06/0.3323, allocations: 0 / 0.4905 GB, free: 6.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3324, allocations: 326.8 kB / 0.4909 GB, free: 5.922 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.044e-05/0.3325, allocations: 23.98 kB / 0.4909 GB, free: 5.898 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.3326, allocations: 42.55 kB / 0.4909 GB, free: 5.848 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.571e-05/0.3327, allocations: 27.98 kB / 0.4909 GB, free: 5.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3328, allocations: 0 / 0.4909 GB, free: 5.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002438/0.333, allocations: 97.59 kB / 0.491 GB, free: 5.719 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.333, allocations: 4 kB / 0.491 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.333, allocations: 3.938 kB / 0.491 GB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.3331, allocations: 4 kB / 0.491 GB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.854e-05/0.3332, allocations: 19.98 kB / 0.4911 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.3332, allocations: 0 / 0.4911 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.842e-05/0.3332, allocations: 19.98 kB / 0.4911 GB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.563e-06/0.3333, allocations: 0 / 0.4911 GB, free: 5.668 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.466e-05/0.3333, allocations: 117.8 kB / 0.4912 GB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.627e-05/0.3334, allocations: 4 kB / 0.4912 GB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.3334, allocations: 7.469 kB / 0.4912 GB, free: 5.531 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3334, allocations: 3.984 kB / 0.4912 GB, free: 5.527 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3334, allocations: 0 / 0.4912 GB, free: 5.527 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.3334, allocations: 4 kB / 0.4912 GB, free: 5.523 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.3336, allocations: 189.5 kB / 0.4914 GB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3336, allocations: 0 / 0.4914 GB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-05/0.3337, allocations: 12 kB / 0.4914 GB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3337, allocations: 3.984 kB / 0.4914 GB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.3337, allocations: 4 kB / 0.4914 GB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3337, allocations: 0 / 0.4914 GB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3337, allocations: 0 / 0.4914 GB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002597/0.334, allocations: 191.4 kB / 0.4916 GB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.349e-05/0.334, allocations: 81.06 kB / 0.4917 GB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.3341, allocations: 0 / 0.4917 GB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.747e-05/0.3342, allocations: 11.98 kB / 0.4917 GB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.759e-05/0.3342, allocations: 0 / 0.4917 GB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.3342, allocations: 7.969 kB / 0.4917 GB, free: 4.949 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.123e-05/0.3343, allocations: 101.5 kB / 0.4918 GB, free: 4.852 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3343, allocations: 0 / 0.4918 GB, free: 4.852 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002191/0.3345, allocations: 15.91 kB / 0.4918 GB, free: 4.836 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0005253/0.335, allocations: 0.7163 MB / 0.4925 GB, free: 4.094 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.3353, allocations: 60.11 kB / 0.4926 GB, free: 4.035 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3353, allocations: 0 / 0.4926 GB, free: 4.035 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.936e-05/0.3354, allocations: 27.92 kB / 0.4926 GB, free: 4.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001892/0.3356, allocations: 14.88 kB / 0.4926 GB, free: 3.992 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.3366, allocations: 0.8521 MB / 0.4934 GB, free: 3.082 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.3368, allocations: 0.6965 MB / 0.4941 GB, free: 2.359 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.163e-05/0.3369, allocations: 4.094 kB / 0.4941 GB, free: 2.355 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.058e-05/0.3369, allocations: 19.42 kB / 0.4941 GB, free: 2.336 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3369, allocations: 0 / 0.4941 GB, free: 2.336 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01127/0.3482, allocations: 1.475 MB / 0.4956 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.3484, allocations: 161.3 kB / 0.4957 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.46/1.809, allocations: 7.922 kB / 0.4957 GB, free: 0.7344 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TestBrush.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TestBrush.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_TestBrush_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_TestBrush.fmu > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1)