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.005119/0.005119, allocations: 106.7 kB / 15.74 MB, free: 5.996 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.374/1.374, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.00134/0.00134, allocations: 196.4 kB / 289.7 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03421/0.03421, allocations: 8.794 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 79.86 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.113, allocations: 51.56 MB / 0.5029 GB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003683/0.1167, allocations: 1.764 MB / 0.5046 GB, free: 8.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.1179, allocations: 0.4986 MB / 0.5051 GB, free: 7.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.118, allocations: 4 kB / 0.5051 GB, free: 7.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.449e-05/0.1181, allocations: 7.922 kB / 0.5051 GB, free: 7.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.1182, allocations: 15.8 kB / 0.5051 GB, free: 7.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002658/0.1185, allocations: 43.88 kB / 0.5052 GB, free: 7.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.1187, allocations: 87.66 kB / 0.5053 GB, free: 7.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.1188, allocations: 20 kB / 0.5053 GB, free: 7.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.1189, allocations: 31.92 kB / 0.5053 GB, free: 7.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.755e-05/0.119, allocations: 43.72 kB / 0.5054 GB, free: 7.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.08e-05/0.1191, allocations: 8 kB / 0.5054 GB, free: 7.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.672e-05/0.1192, allocations: 19.98 kB / 0.5054 GB, free: 7.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.783e-05/0.1192, allocations: 19.97 kB / 0.5054 GB, free: 7.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.533e-05/0.1193, allocations: 43.81 kB / 0.5054 GB, free: 7.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002206/0.1195, allocations: 99.94 kB / 0.5055 GB, free: 7.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1195, allocations: 0 / 0.5055 GB, free: 7.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.1195, allocations: 0 / 0.5055 GB, free: 7.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.585e-06/0.1196, allocations: 4 kB / 0.5055 GB, free: 7.277 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.0006184/0.1202, allocations: 383.2 kB / 0.5059 GB, free: 6.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.1202, allocations: 15.97 kB / 0.5059 GB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.258e-05/0.1203, allocations: 34.75 kB / 0.506 GB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.226e-05/0.1203, allocations: 16.83 kB / 0.506 GB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.1205, allocations: 180.2 kB / 0.5061 GB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.1206, allocations: 4.375 kB / 0.5061 GB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.1206, allocations: 4.375 kB / 0.5061 GB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.1208, allocations: 89.78 kB / 0.5062 GB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1209, allocations: 0 / 0.5062 GB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.1209, allocations: 4 kB / 0.5062 GB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.1209, allocations: 0 / 0.5062 GB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002335/0.1211, allocations: 67.94 kB / 0.5063 GB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007231/0.1219, allocations: 395.5 kB / 0.5067 GB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.122, allocations: 46.48 kB / 0.5067 GB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.104e-05/0.1221, allocations: 28.91 kB / 0.5068 GB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.1221, allocations: 0 / 0.5068 GB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.1222, allocations: 30.56 kB / 0.5068 GB, free: 5.824 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.1222, allocations: 0 / 0.5068 GB, free: 5.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003895/0.1226, allocations: 93.58 kB / 0.5069 GB, free: 5.727 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.1226, allocations: 51.53 kB / 0.5069 GB, free: 5.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.1228, allocations: 133.7 kB / 0.507 GB, free: 5.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.1228, allocations: 25.7 kB / 0.5071 GB, free: 5.492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.455e-05/0.1229, allocations: 112 kB / 0.5072 GB, free: 5.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.256e-05/0.1229, allocations: 7.906 kB / 0.5072 GB, free: 5.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.123, allocations: 17.72 kB / 0.5072 GB, free: 5.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1231, allocations: 314.8 kB / 0.5075 GB, free: 5.031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.506e-05/0.1232, allocations: 19.98 kB / 0.5075 GB, free: 5.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.1234, allocations: 38.56 kB / 0.5076 GB, free: 4.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.1235, allocations: 58.53 kB / 0.5076 GB, free: 4.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.1236, allocations: 7.938 kB / 0.5076 GB, free: 4.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000243/0.1238, allocations: 89.59 kB / 0.5077 GB, free: 4.797 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.1238, allocations: 5.562 kB / 0.5077 GB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.1239, allocations: 7.938 kB / 0.5077 GB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.1239, allocations: 0 / 0.5077 GB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.124, allocations: 15.92 kB / 0.5077 GB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.124, allocations: 3.984 kB / 0.5077 GB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.525e-05/0.1241, allocations: 19.98 kB / 0.5078 GB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.1241, allocations: 0 / 0.5078 GB, free: 4.746 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 0.0001142/0.1243, allocations: 121.7 kB / 0.5079 GB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.265e-05/0.1243, allocations: 4 kB / 0.5079 GB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.75e-05/0.1244, allocations: 11.47 kB / 0.5079 GB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.1244, allocations: 0 / 0.5079 GB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1244, allocations: 96 / 0.5079 GB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.1244, allocations: 3.984 kB / 0.5079 GB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.1246, allocations: 181.6 kB / 0.5081 GB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1246, allocations: 0 / 0.5081 GB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.43e-05/0.1247, allocations: 11.98 kB / 0.5081 GB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.1247, allocations: 4 kB / 0.5081 GB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.1247, allocations: 3.938 kB / 0.5081 GB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.1248, allocations: 0 / 0.5081 GB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1248, allocations: 3.938 kB / 0.5081 GB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.1251, allocations: 171.4 kB / 0.5083 GB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.968e-05/0.1252, allocations: 81.09 kB / 0.5083 GB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.1252, allocations: 3.938 kB / 0.5083 GB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.99e-05/0.1253, allocations: 4 kB / 0.5083 GB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.1254, allocations: 3.984 kB / 0.5083 GB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.1254, allocations: 4 kB / 0.5083 GB, free: 4.047 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.161e-05/0.1255, allocations: 95.27 kB / 0.5084 GB, free: 3.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1255, allocations: 0 / 0.5084 GB, free: 3.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002696/0.1258, allocations: 27.84 kB / 0.5085 GB, free: 3.926 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.0006961/0.1265, allocations: 0.7123 MB / 0.5092 GB, free: 3.188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002379/0.1267, allocations: 48.11 kB / 0.5092 GB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1267, allocations: 0 / 0.5092 GB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.475e-05/0.1268, allocations: 23.92 kB / 0.5092 GB, free: 3.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.1271, allocations: 4 kB / 0.5092 GB, free: 3.113 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.1289, allocations: 1.425 MB / 0.5106 GB, free: 1.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.1293, allocations: 0.6922 MB / 0.5113 GB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.26e-05/0.1293, allocations: 8 kB / 0.5113 GB, free: 0.8711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.1294, allocations: 19.44 kB / 0.5113 GB, free: 0.8555 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1294, allocations: 0 / 0.5113 GB, free: 0.8555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01919/0.1486, allocations: 1.811 MB / 0.5131 GB, free: 15.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/7.796, allocations: 10.22 kB / 0.5131 GB, free: 15.09 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)