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.005309/0.005308, allocations: 97.11 kB / 15.73 MB, free: 5.988 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.379/1.379, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001507/0.001507, allocations: 200.4 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03568/0.03568, allocations: 8.802 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002196/0.002196, allocations: 84.2 kB / 463.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09549/0.09769, allocations: 51.56 MB / 0.5029 GB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003087/0.1008, allocations: 1.775 MB / 0.5046 GB, free: 8.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008216/0.1017, allocations: 498.7 kB / 0.5051 GB, free: 7.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.264e-05/0.1017, allocations: 0 / 0.5051 GB, free: 7.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.764e-05/0.1018, allocations: 11.92 kB / 0.5051 GB, free: 7.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.057e-05/0.1019, allocations: 19.78 kB / 0.5051 GB, free: 7.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.1021, allocations: 43.89 kB / 0.5052 GB, free: 7.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.1022, allocations: 83.66 kB / 0.5053 GB, free: 7.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.1024, allocations: 23.98 kB / 0.5053 GB, free: 7.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.837e-05/0.1024, allocations: 31.86 kB / 0.5053 GB, free: 7.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.755e-05/0.1025, allocations: 43.83 kB / 0.5054 GB, free: 7.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.1026, allocations: 11.94 kB / 0.5054 GB, free: 7.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.759e-05/0.1026, allocations: 23.98 kB / 0.5054 GB, free: 7.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.23e-05/0.1027, allocations: 12 kB / 0.5054 GB, free: 7.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.998e-05/0.1027, allocations: 39.8 kB / 0.5054 GB, free: 7.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001703/0.1029, allocations: 99.61 kB / 0.5055 GB, free: 7.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1029, allocations: 0 / 0.5055 GB, free: 7.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1029, allocations: 0 / 0.5055 GB, free: 7.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.1029, allocations: 0 / 0.5055 GB, free: 7.324 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.0005384/0.1035, allocations: 395.1 kB / 0.5059 GB, free: 6.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.1035, allocations: 16.03 kB / 0.5059 GB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.905e-05/0.1036, allocations: 34.75 kB / 0.506 GB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.215e-05/0.1036, allocations: 12.88 kB / 0.506 GB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.1038, allocations: 180.2 kB / 0.5061 GB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.1038, allocations: 12.31 kB / 0.5062 GB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.309e-05/0.1039, allocations: 4.375 kB / 0.5062 GB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.1041, allocations: 89.72 kB / 0.5062 GB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.1041, allocations: 0 / 0.5062 GB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.1041, allocations: 7.938 kB / 0.5062 GB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1041, allocations: 8 kB / 0.5063 GB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002245/0.1044, allocations: 66 kB / 0.5063 GB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005977/0.105, allocations: 391.6 kB / 0.5067 GB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.1051, allocations: 46.56 kB / 0.5067 GB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.297e-05/0.1052, allocations: 24.89 kB / 0.5068 GB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.1052, allocations: 4 kB / 0.5068 GB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.1053, allocations: 30.56 kB / 0.5068 GB, free: 5.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.372e-06/0.1053, allocations: 0 / 0.5068 GB, free: 5.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003754/0.1057, allocations: 101.6 kB / 0.5069 GB, free: 5.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.1057, allocations: 51.41 kB / 0.5069 GB, free: 5.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.1058, allocations: 121.8 kB / 0.5071 GB, free: 5.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.1059, allocations: 25.7 kB / 0.5071 GB, free: 5.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.179e-05/0.1059, allocations: 112.1 kB / 0.5072 GB, free: 5.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.29e-05/0.106, allocations: 11.88 kB / 0.5072 GB, free: 5.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.106, allocations: 13.72 kB / 0.5072 GB, free: 5.379 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1061, allocations: 318.8 kB / 0.5075 GB, free: 5.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.408e-05/0.1062, allocations: 28 kB / 0.5075 GB, free: 5.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.1064, allocations: 34.56 kB / 0.5076 GB, free: 4.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.1066, allocations: 66.47 kB / 0.5076 GB, free: 4.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1066, allocations: 0 / 0.5076 GB, free: 4.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002237/0.1068, allocations: 85.59 kB / 0.5077 GB, free: 4.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.1068, allocations: 4 kB / 0.5077 GB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1068, allocations: 3.938 kB / 0.5077 GB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1068, allocations: 4 kB / 0.5077 GB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.16e-05/0.1069, allocations: 16.08 kB / 0.5077 GB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.107, allocations: 4 kB / 0.5078 GB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.767e-05/0.107, allocations: 7.953 kB / 0.5078 GB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.107, allocations: 4 kB / 0.5078 GB, free: 4.781 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.0001592/0.1072, allocations: 129.6 kB / 0.5079 GB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.249e-05/0.1072, allocations: 0 / 0.5079 GB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.053e-05/0.1073, allocations: 11.47 kB / 0.5079 GB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1073, allocations: 0 / 0.5079 GB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1073, allocations: 0 / 0.5079 GB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1073, allocations: 7.938 kB / 0.5079 GB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002057/0.1075, allocations: 185.6 kB / 0.5081 GB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1075, allocations: 0 / 0.5081 GB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.042e-05/0.1076, allocations: 7.984 kB / 0.5081 GB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1076, allocations: 0 / 0.5081 GB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.1076, allocations: 11.94 kB / 0.5081 GB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1076, allocations: 0 / 0.5081 GB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1076, allocations: 0 / 0.5081 GB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002649/0.1079, allocations: 171.4 kB / 0.5083 GB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.107e-05/0.1079, allocations: 85.06 kB / 0.5083 GB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.108, allocations: 3.938 kB / 0.5083 GB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.061e-05/0.108, allocations: 7.984 kB / 0.5084 GB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.082e-05/0.1081, allocations: 0 / 0.5084 GB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.1081, allocations: 96 / 0.5084 GB, free: 4.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001409/0.1082, allocations: 99.27 kB / 0.5085 GB, free: 3.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1082, allocations: 4.031 kB / 0.5085 GB, free: 3.973 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002355/0.1085, allocations: 15.94 kB / 0.5085 GB, free: 3.957 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.0005992/0.1091, allocations: 0.7045 MB / 0.5092 GB, free: 3.227 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000235/0.1093, allocations: 55.92 kB / 0.5092 GB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1093, allocations: 0 / 0.5092 GB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.899e-05/0.1094, allocations: 19.98 kB / 0.5092 GB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.1097, allocations: 15.92 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.001706/0.1114, allocations: 1.406 MB / 0.5106 GB, free: 1.637 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.112, allocations: 0.696 MB / 0.5113 GB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.124e-05/0.112, allocations: 16.17 kB / 0.5113 GB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.567e-05/0.1121, allocations: 23.44 kB / 0.5113 GB, free: 0.8789 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1121, allocations: 0 / 0.5113 GB, free: 0.8789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02209/0.1342, allocations: 1.795 MB / 0.5131 GB, free: 15.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.548/7.682, allocations: 7.438 kB / 0.5131 GB, free: 15.14 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)