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.007521/0.007521, allocations: 100.4 kB / 15.73 MB, free: 6.004 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.593/1.593, allocations: 222.9 MB / 239.4 MB, free: 4.496 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.00147/0.001469, allocations: 192.5 kB / 289.7 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03822/0.03822, allocations: 8.81 MB / 348.7 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 84.16 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1232, allocations: 51.55 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003213/0.1264, allocations: 1.777 MB / 0.5046 GB, free: 8.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009034/0.1274, allocations: 0.4909 MB / 0.5051 GB, free: 7.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.295e-05/0.1274, allocations: 0 / 0.5051 GB, free: 7.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.197e-05/0.1275, allocations: 11.88 kB / 0.5051 GB, free: 7.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.076e-05/0.1276, allocations: 27.78 kB / 0.5052 GB, free: 7.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002001/0.1278, allocations: 27.97 kB / 0.5052 GB, free: 7.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.128, allocations: 83.59 kB / 0.5053 GB, free: 7.566 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.1281, allocations: 31.98 kB / 0.5053 GB, free: 7.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.21e-05/0.1282, allocations: 35.84 kB / 0.5053 GB, free: 7.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.013e-05/0.1283, allocations: 39.84 kB / 0.5054 GB, free: 7.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.1283, allocations: 8 kB / 0.5054 GB, free: 7.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.639e-05/0.1284, allocations: 23.98 kB / 0.5054 GB, free: 7.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.121e-05/0.1284, allocations: 8 kB / 0.5054 GB, free: 7.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.891e-05/0.1285, allocations: 43.73 kB / 0.5054 GB, free: 7.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.1287, allocations: 103.6 kB / 0.5055 GB, free: 7.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1287, allocations: 0 / 0.5055 GB, free: 7.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1287, allocations: 0 / 0.5055 GB, free: 7.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.1287, allocations: 0 / 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.0005791/0.1293, allocations: 403 kB / 0.5059 GB, free: 6.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1293, allocations: 8.031 kB / 0.5059 GB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.394e-05/0.1294, allocations: 38.75 kB / 0.506 GB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.1294, allocations: 8.891 kB / 0.506 GB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.1296, allocations: 176.3 kB / 0.5061 GB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.1296, allocations: 8.375 kB / 0.5062 GB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.1296, allocations: 4.375 kB / 0.5062 GB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002419/0.1299, allocations: 95.48 kB / 0.5062 GB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.1299, allocations: 0 / 0.5062 GB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.1299, allocations: 8 kB / 0.5063 GB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1299, allocations: 0 / 0.5063 GB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002421/0.1302, allocations: 63.95 kB / 0.5063 GB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006538/0.1308, allocations: 391.6 kB / 0.5067 GB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.131, allocations: 50.55 kB / 0.5067 GB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.688e-05/0.1311, allocations: 24.91 kB / 0.5068 GB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.1311, allocations: 0 / 0.5068 GB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.1312, allocations: 38.5 kB / 0.5068 GB, free: 5.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.1312, allocations: 4 kB / 0.5068 GB, free: 5.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003825/0.1316, allocations: 93.56 kB / 0.5069 GB, free: 5.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.1316, allocations: 55.34 kB / 0.5069 GB, free: 5.641 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.1318, allocations: 125.8 kB / 0.5071 GB, free: 5.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.1318, allocations: 25.7 kB / 0.5071 GB, free: 5.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.344e-05/0.1319, allocations: 108.1 kB / 0.5072 GB, free: 5.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.1319, allocations: 15.88 kB / 0.5072 GB, free: 5.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.795e-05/0.1319, allocations: 13.72 kB / 0.5072 GB, free: 5.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1321, allocations: 319 kB / 0.5075 GB, free: 5.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.429e-05/0.1322, allocations: 23.97 kB / 0.5075 GB, free: 4.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.1323, allocations: 38.5 kB / 0.5076 GB, free: 4.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.1325, allocations: 62.53 kB / 0.5076 GB, free: 4.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1325, allocations: 0 / 0.5076 GB, free: 4.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002359/0.1328, allocations: 81.59 kB / 0.5077 GB, free: 4.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1328, allocations: 9.562 kB / 0.5077 GB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1328, allocations: 7.875 kB / 0.5077 GB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1328, allocations: 96 / 0.5077 GB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.1329, allocations: 19.98 kB / 0.5078 GB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.133, allocations: 3.938 kB / 0.5078 GB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.316e-05/0.133, allocations: 11.95 kB / 0.5078 GB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.133, allocations: 0 / 0.5078 GB, free: 4.734 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 9.668e-05/0.1331, allocations: 125.7 kB / 0.5079 GB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.1332, allocations: 4 kB / 0.5079 GB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.134e-05/0.1332, allocations: 7.469 kB / 0.5079 GB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.1332, allocations: 4 kB / 0.5079 GB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1332, allocations: 4 kB / 0.5079 GB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1332, allocations: 0 / 0.5079 GB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.1335, allocations: 177.6 kB / 0.5081 GB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1335, allocations: 0 / 0.5081 GB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.385e-05/0.1335, allocations: 11.98 kB / 0.5081 GB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1335, allocations: 0 / 0.5081 GB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.1336, allocations: 3.938 kB / 0.5081 GB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1336, allocations: 0 / 0.5081 GB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1336, allocations: 0 / 0.5081 GB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002833/0.1339, allocations: 179.4 kB / 0.5083 GB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-05/0.1339, allocations: 81.06 kB / 0.5083 GB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.134, allocations: 7.938 kB / 0.5084 GB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.937e-05/0.134, allocations: 3.984 kB / 0.5084 GB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.1341, allocations: 4 kB / 0.5084 GB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.1341, allocations: 0 / 0.5084 GB, free: 4.035 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.29e-05/0.1342, allocations: 103.3 kB / 0.5085 GB, free: 3.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1342, allocations: 0 / 0.5085 GB, free: 3.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000246/0.1344, allocations: 15.94 kB / 0.5085 GB, free: 3.918 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.0006847/0.1351, allocations: 0.7084 MB / 0.5092 GB, free: 3.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002617/0.1354, allocations: 51.89 kB / 0.5092 GB, free: 3.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.1354, allocations: 0 / 0.5092 GB, free: 3.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.177e-05/0.1355, allocations: 19.98 kB / 0.5092 GB, free: 3.113 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003771/0.1359, allocations: 19.88 kB / 0.5093 GB, free: 3.094 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.1377, allocations: 1.41 MB / 0.5106 GB, free: 1.594 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.1381, allocations: 0.7 MB / 0.5113 GB, free: 0.8672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.703e-05/0.1382, allocations: 8.234 kB / 0.5113 GB, free: 0.8594 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.636e-05/0.1382, allocations: 19.44 kB / 0.5113 GB, free: 0.8438 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1382, allocations: 0 / 0.5113 GB, free: 0.8438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.1608, allocations: 1.791 MB / 0.5131 GB, free: 15.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.984/8.144, allocations: 2.344 kB / 0.5131 GB, free: 15.11 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)