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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004876/0.004876, allocations: 99.8 kB / 15.73 MB, free: 6.043 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.35/1.35, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001267/0.001267, allocations: 192.4 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0345/0.0345, allocations: 8.8 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 87.86 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08621/0.08779, allocations: 51.55 MB / 0.5029 GB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.002751/0.09058, allocations: 1.779 MB / 0.5046 GB, free: 8.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008079/0.09141, allocations: 0.4948 MB / 0.5051 GB, free: 7.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.528e-05/0.09151, allocations: 4 kB / 0.5051 GB, free: 7.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.867e-05/0.09156, allocations: 7.922 kB / 0.5051 GB, free: 7.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.751e-05/0.09166, allocations: 19.8 kB / 0.5051 GB, free: 7.711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002057/0.09187, allocations: 31.91 kB / 0.5052 GB, free: 7.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001111/0.09199, allocations: 83.66 kB / 0.5052 GB, free: 7.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.09212, allocations: 39.91 kB / 0.5053 GB, free: 7.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.144e-05/0.09221, allocations: 31.86 kB / 0.5053 GB, free: 7.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.221e-05/0.09228, allocations: 39.78 kB / 0.5054 GB, free: 7.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.0923, allocations: 8 kB / 0.5054 GB, free: 7.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.697e-05/0.09238, allocations: 23.98 kB / 0.5054 GB, free: 7.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.898e-05/0.0924, allocations: 11.98 kB / 0.5054 GB, free: 7.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.084e-05/0.09245, allocations: 35.81 kB / 0.5054 GB, free: 7.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.09261, allocations: 104 kB / 0.5055 GB, free: 7.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.09262, allocations: 0 / 0.5055 GB, free: 7.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.09263, allocations: 0 / 0.5055 GB, free: 7.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.09264, allocations: 4 kB / 0.5055 GB, free: 7.305 MB / 350.1 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.0004749/0.09312, allocations: 391.2 kB / 0.5059 GB, free: 6.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.09316, allocations: 8.031 kB / 0.5059 GB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.799e-05/0.09321, allocations: 38.75 kB / 0.506 GB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.09325, allocations: 8.844 kB / 0.506 GB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.09339, allocations: 184.1 kB / 0.5061 GB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.09341, allocations: 8.312 kB / 0.5061 GB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.09343, allocations: 8.375 kB / 0.5062 GB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.09364, allocations: 89.78 kB / 0.5062 GB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.09366, allocations: 0 / 0.5062 GB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.09368, allocations: 4 kB / 0.5062 GB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.09369, allocations: 0 / 0.5062 GB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002102/0.0939, allocations: 67.89 kB / 0.5063 GB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005659/0.09448, allocations: 399.5 kB / 0.5067 GB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.09462, allocations: 46.48 kB / 0.5067 GB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.066e-05/0.09472, allocations: 24.91 kB / 0.5068 GB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.09474, allocations: 0 / 0.5068 GB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.09477, allocations: 34.56 kB / 0.5068 GB, free: 5.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 2.344e-06/0.09478, allocations: 3.984 kB / 0.5068 GB, free: 5.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003694/0.09515, allocations: 97.52 kB / 0.5069 GB, free: 5.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.0952, allocations: 51.41 kB / 0.5069 GB, free: 5.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.273e-05/0.0953, allocations: 121.8 kB / 0.507 GB, free: 5.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.09532, allocations: 33.69 kB / 0.5071 GB, free: 5.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.926e-05/0.09539, allocations: 100.2 kB / 0.5072 GB, free: 5.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.065e-05/0.09541, allocations: 15.89 kB / 0.5072 GB, free: 5.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/0.09545, allocations: 13.72 kB / 0.5072 GB, free: 5.367 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.553e-05/0.09555, allocations: 314.8 kB / 0.5075 GB, free: 5.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.295e-05/0.09565, allocations: 23.97 kB / 0.5075 GB, free: 5.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.402e-05/0.09575, allocations: 34.56 kB / 0.5076 GB, free: 4.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.09595, allocations: 66.47 kB / 0.5076 GB, free: 4.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.09595, allocations: 0 / 0.5076 GB, free: 4.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002226/0.09618, allocations: 85.66 kB / 0.5077 GB, free: 4.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.09621, allocations: 12.03 kB / 0.5077 GB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.09622, allocations: 3.938 kB / 0.5077 GB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.09623, allocations: 0 / 0.5077 GB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.103e-05/0.09633, allocations: 15.98 kB / 0.5077 GB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.09634, allocations: 4 kB / 0.5077 GB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.921e-05/0.09641, allocations: 7.906 kB / 0.5077 GB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.09642, allocations: 3.938 kB / 0.5078 GB, free: 4.773 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.106e-05/0.0965, allocations: 125.7 kB / 0.5079 GB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.09654, allocations: 8 kB / 0.5079 GB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.657e-05/0.09657, allocations: 7.469 kB / 0.5079 GB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.09657, allocations: 0 / 0.5079 GB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.09658, allocations: 4 kB / 0.5079 GB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.09659, allocations: 0 / 0.5079 GB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.09676, allocations: 177.6 kB / 0.5081 GB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.09677, allocations: 3.938 kB / 0.5081 GB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.223e-05/0.09684, allocations: 11.98 kB / 0.5081 GB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.09685, allocations: 3.938 kB / 0.5081 GB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.09686, allocations: 3.938 kB / 0.5081 GB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.09687, allocations: 4 kB / 0.5081 GB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.09687, allocations: 0 / 0.5081 GB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.09712, allocations: 171.4 kB / 0.5082 GB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.335e-05/0.09716, allocations: 77.11 kB / 0.5083 GB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.09718, allocations: 3.938 kB / 0.5083 GB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-05/0.09727, allocations: 12.02 kB / 0.5083 GB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.713e-05/0.0973, allocations: 4 kB / 0.5083 GB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.517e-06/0.09731, allocations: 0 / 0.5083 GB, free: 4.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.938e-05/0.09738, allocations: 99.27 kB / 0.5084 GB, free: 3.973 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.09738, allocations: 0 / 0.5084 GB, free: 3.973 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002366/0.09762, allocations: 23.84 kB / 0.5085 GB, free: 3.949 MB / 350.1 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 (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.0004994/0.09813, allocations: 0.7045 MB / 0.5091 GB, free: 3.219 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002193/0.09836, allocations: 47.89 kB / 0.5092 GB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.09837, allocations: 4 kB / 0.5092 GB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.71e-05/0.09846, allocations: 20.2 kB / 0.5092 GB, free: 3.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.09875, allocations: 12.06 kB / 0.5092 GB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.1003, allocations: 1.41 MB / 0.5106 GB, free: 1.633 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.1005, allocations: 0.6999 MB / 0.5113 GB, free: 0.9062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.475e-05/0.1005, allocations: 7.984 kB / 0.5113 GB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.879e-05/0.1006, allocations: 19.44 kB / 0.5113 GB, free: 0.8828 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1006, allocations: 0 / 0.5113 GB, free: 0.8828 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01731/0.1179, allocations: 1.819 MB / 0.5131 GB, free: 15.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.353/7.471, allocations: 10.03 kB / 0.5131 GB, free: 15.12 MB / 366.1 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/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)