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.005811/0.005811, allocations: 97.59 kB / 15.73 MB, free: 6.008 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.527 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.001406/0.001406, allocations: 184.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04988/0.04988, allocations: 8.8 MB / 348.7 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 83.86 kB / 463.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.09859, allocations: 51.55 MB / 0.5029 GB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003104/0.1017, allocations: 1.779 MB / 0.5046 GB, free: 8.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008641/0.1026, allocations: 0.4909 MB / 0.5051 GB, free: 7.684 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.752e-05/0.1027, allocations: 4 kB / 0.5051 GB, free: 7.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.13e-05/0.1028, allocations: 11.86 kB / 0.5051 GB, free: 7.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.1029, allocations: 15.86 kB / 0.5051 GB, free: 7.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002187/0.1031, allocations: 31.91 kB / 0.5052 GB, free: 7.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.1033, allocations: 83.66 kB / 0.5052 GB, free: 7.539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.1034, allocations: 35.97 kB / 0.5053 GB, free: 7.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.236e-05/0.1035, allocations: 35.86 kB / 0.5053 GB, free: 7.469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.395e-05/0.1036, allocations: 39.78 kB / 0.5054 GB, free: 7.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.1036, allocations: 8 kB / 0.5054 GB, free: 7.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.635e-05/0.1037, allocations: 19.98 kB / 0.5054 GB, free: 7.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.094e-05/0.1037, allocations: 15.98 kB / 0.5054 GB, free: 7.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.428e-05/0.1038, allocations: 35.81 kB / 0.5054 GB, free: 7.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001615/0.1039, allocations: 99.61 kB / 0.5055 GB, free: 7.254 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.104, allocations: 4 kB / 0.5055 GB, free: 7.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.104, allocations: 0 / 0.5055 GB, free: 7.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.104, allocations: 0 / 0.5055 GB, free: 7.25 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.000532/0.1045, allocations: 395.1 kB / 0.5059 GB, free: 6.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1046, allocations: 8.031 kB / 0.5059 GB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.555e-05/0.1046, allocations: 46.69 kB / 0.506 GB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.308e-05/0.1046, allocations: 12.83 kB / 0.506 GB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.1048, allocations: 180.3 kB / 0.5061 GB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.1048, allocations: 384 / 0.5061 GB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.1049, allocations: 16.38 kB / 0.5062 GB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.1051, allocations: 89.72 kB / 0.5062 GB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1051, allocations: 0 / 0.5062 GB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.1051, allocations: 0 / 0.5062 GB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.1051, allocations: 0 / 0.5062 GB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002158/0.1054, allocations: 71.88 kB / 0.5063 GB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006242/0.106, allocations: 399.6 kB / 0.5067 GB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001352/0.1061, allocations: 46.48 kB / 0.5067 GB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.128e-05/0.1062, allocations: 24.91 kB / 0.5068 GB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.1063, allocations: 0 / 0.5068 GB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.1063, allocations: 34.56 kB / 0.5068 GB, free: 5.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.1063, allocations: 0 / 0.5068 GB, free: 5.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003739/0.1067, allocations: 97.52 kB / 0.5069 GB, free: 5.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/0.1067, allocations: 51.41 kB / 0.5069 GB, free: 5.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.1068, allocations: 125.8 kB / 0.5071 GB, free: 5.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.1069, allocations: 29.7 kB / 0.5071 GB, free: 5.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.953e-05/0.1069, allocations: 112.2 kB / 0.5072 GB, free: 5.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.145e-05/0.1069, allocations: 11.88 kB / 0.5072 GB, free: 5.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.107, allocations: 17.72 kB / 0.5072 GB, free: 5.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1071, allocations: 310.8 kB / 0.5075 GB, free: 4.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.356e-05/0.1072, allocations: 23.97 kB / 0.5075 GB, free: 4.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.614e-05/0.1073, allocations: 42.56 kB / 0.5076 GB, free: 4.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.1075, allocations: 62.47 kB / 0.5076 GB, free: 4.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1075, allocations: 0 / 0.5076 GB, free: 4.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002414/0.1077, allocations: 85.59 kB / 0.5077 GB, free: 4.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1078, allocations: 9.406 kB / 0.5077 GB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1078, allocations: 3.938 kB / 0.5077 GB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.1078, allocations: 0 / 0.5077 GB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.377e-05/0.1079, allocations: 11.98 kB / 0.5077 GB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.1079, allocations: 4 kB / 0.5077 GB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.248e-05/0.108, allocations: 11.89 kB / 0.5078 GB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.108, allocations: 3.984 kB / 0.5078 GB, free: 4.703 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.229e-05/0.1081, allocations: 129.8 kB / 0.5079 GB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.932e-05/0.1081, allocations: 4 kB / 0.5079 GB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.034e-05/0.1081, allocations: 11.47 kB / 0.5079 GB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.1082, allocations: 0 / 0.5079 GB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.1082, allocations: 4 kB / 0.5079 GB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1082, allocations: 0 / 0.5079 GB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001717/0.1084, allocations: 177.6 kB / 0.5081 GB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1084, allocations: 0 / 0.5081 GB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.243e-05/0.1084, allocations: 11.98 kB / 0.5081 GB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1085, allocations: 0 / 0.5081 GB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.1085, allocations: 7.938 kB / 0.5081 GB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1085, allocations: 4 kB / 0.5081 GB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1085, allocations: 0 / 0.5081 GB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.1087, allocations: 167.5 kB / 0.5083 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.1088, allocations: 81.06 kB / 0.5083 GB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.1088, allocations: 7.922 kB / 0.5083 GB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.209e-05/0.1089, allocations: 8.031 kB / 0.5084 GB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.411e-05/0.109, allocations: 11.94 kB / 0.5084 GB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-06/0.109, allocations: 3.938 kB / 0.5084 GB, free: 3.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.919e-05/0.109, allocations: 95.27 kB / 0.5085 GB, free: 3.895 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.109, allocations: 0 / 0.5085 GB, free: 3.895 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000252/0.1093, allocations: 15.94 kB / 0.5085 GB, free: 3.879 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.0005985/0.1099, allocations: 0.7085 MB / 0.5092 GB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002599/0.1102, allocations: 51.89 kB / 0.5092 GB, free: 3.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1102, allocations: 0 / 0.5092 GB, free: 3.094 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.508e-05/0.1103, allocations: 24.2 kB / 0.5092 GB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.1106, allocations: 7.938 kB / 0.5092 GB, free: 3.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.1124, allocations: 1.417 MB / 0.5106 GB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.1127, allocations: 0.696 MB / 0.5113 GB, free: 0.832 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.714e-05/0.1127, allocations: 8.234 kB / 0.5113 GB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.678e-05/0.1128, allocations: 15.44 kB / 0.5113 GB, free: 0.8125 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1128, allocations: 0 / 0.5113 GB, free: 0.8125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.1314, allocations: 1.798 MB / 0.5131 GB, free: 15.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.719/7.851, allocations: 7.359 kB / 0.5131 GB, free: 15.07 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.TestBrush_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Electrical_TestBrush.fmu > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1)