Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical5.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.FirstSteps.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",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.007328/0.007328, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.479/1.479, 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.001435/0.001435, allocations: 196.4 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03412/0.03412, allocations: 8.791 MB / 348.7 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002384/0.002384, allocations: 79.86 kB / 463.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1299, allocations: 51.55 MB / 0.5029 GB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical5): time 0.004381/0.1343, allocations: 1.817 MB / 0.5047 GB, free: 8.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009507/0.1353, allocations: 466.8 kB / 0.5051 GB, free: 7.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.1355, allocations: 3.938 kB / 0.5051 GB, free: 7.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.1356, allocations: 15.84 kB / 0.5051 GB, free: 7.723 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.1357, allocations: 35.7 kB / 0.5052 GB, free: 7.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000147/0.1359, allocations: 23.97 kB / 0.5052 GB, free: 7.664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.1361, allocations: 123.5 kB / 0.5053 GB, free: 7.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.1362, allocations: 49.03 kB / 0.5054 GB, free: 7.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.116e-05/0.1363, allocations: 47.8 kB / 0.5054 GB, free: 7.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.137e-05/0.1364, allocations: 51.78 kB / 0.5055 GB, free: 7.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.1364, allocations: 8 kB / 0.5055 GB, free: 7.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.285e-05/0.1364, allocations: 16 kB / 0.5055 GB, free: 7.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.887e-05/0.1365, allocations: 23.91 kB / 0.5055 GB, free: 7.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.518e-05/0.1366, allocations: 59.67 kB / 0.5056 GB, free: 7.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001789/0.1367, allocations: 115.5 kB / 0.5057 GB, free: 7.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1368, allocations: 3.984 kB / 0.5057 GB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1368, allocations: 0 / 0.5057 GB, free: 7.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.1368, allocations: 0 / 0.5057 GB, free: 7.176 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005812/0.1374, allocations: 411 kB / 0.5061 GB, free: 6.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1374, allocations: 8.031 kB / 0.5061 GB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.392e-05/0.1375, allocations: 54.67 kB / 0.5061 GB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.056e-05/0.1375, allocations: 16.84 kB / 0.5061 GB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003719/0.1379, allocations: 192.2 kB / 0.5063 GB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.1379, allocations: 12.38 kB / 0.5063 GB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.138, allocations: 4.375 kB / 0.5063 GB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002241/0.1382, allocations: 109.7 kB / 0.5064 GB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.1382, allocations: 0 / 0.5064 GB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.1382, allocations: 8 kB / 0.5065 GB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1383, allocations: 0 / 0.5065 GB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.1384, allocations: 63.97 kB / 0.5065 GB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008149/0.1392, allocations: 0.4944 MB / 0.507 GB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.929e-05/0.1393, allocations: 50.48 kB / 0.507 GB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.465e-05/0.1394, allocations: 24.94 kB / 0.5071 GB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.1394, allocations: 0 / 0.5071 GB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.1394, allocations: 30.56 kB / 0.5071 GB, free: 5.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.1394, allocations: 0 / 0.5071 GB, free: 5.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001716/0.1396, allocations: 69.58 kB / 0.5072 GB, free: 5.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.1396, allocations: 51.41 kB / 0.5072 GB, free: 5.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.1398, allocations: 139.4 kB / 0.5073 GB, free: 5.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.1398, allocations: 29.7 kB / 0.5074 GB, free: 5.215 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.281e-05/0.1399, allocations: 124 kB / 0.5075 GB, free: 5.086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/0.1399, allocations: 19.89 kB / 0.5075 GB, free: 5.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.638e-05/0.1399, allocations: 17.72 kB / 0.5075 GB, free: 5.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.14, allocations: 322.8 kB / 0.5078 GB, free: 4.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.807e-05/0.1401, allocations: 12 kB / 0.5078 GB, free: 4.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.357e-05/0.1401, allocations: 38.55 kB / 0.5079 GB, free: 4.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.717e-05/0.1402, allocations: 58.52 kB / 0.5079 GB, free: 4.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1402, allocations: 0 / 0.5079 GB, free: 4.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001169/0.1403, allocations: 81.58 kB / 0.508 GB, free: 4.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.1403, allocations: 4 kB / 0.508 GB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1404, allocations: 4 kB / 0.508 GB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.1404, allocations: 0 / 0.508 GB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.131e-05/0.1405, allocations: 15.98 kB / 0.508 GB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.1405, allocations: 4 kB / 0.508 GB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.796e-05/0.1405, allocations: 15.89 kB / 0.5081 GB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.1406, allocations: 4 kB / 0.5081 GB, free: 4.461 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 (8): * Single equations (assignments): 8 * 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.414e-05/0.1406, allocations: 129.7 kB / 0.5082 GB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.1407, allocations: 7.953 kB / 0.5082 GB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.402e-05/0.1407, allocations: 4.25 kB / 0.5082 GB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1407, allocations: 0 / 0.5082 GB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1407, allocations: 0 / 0.5082 GB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1407, allocations: 7.984 kB / 0.5082 GB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/0.1409, allocations: 193.6 kB / 0.5084 GB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.141, allocations: 8 kB / 0.5084 GB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.951e-05/0.141, allocations: 11.98 kB / 0.5084 GB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.141, allocations: 0 / 0.5084 GB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-06/0.1411, allocations: 0 / 0.5084 GB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1411, allocations: 0 / 0.5084 GB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1411, allocations: 0 / 0.5084 GB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001662/0.1412, allocations: 167.4 kB / 0.5086 GB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.1413, allocations: 93.08 kB / 0.5087 GB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.1413, allocations: 4.062 kB / 0.5087 GB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.41e-05/0.1414, allocations: 4.062 kB / 0.5087 GB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.54e-05/0.1414, allocations: 7.938 kB / 0.5087 GB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.1414, allocations: 0 / 0.5087 GB, free: 3.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.41e-05/0.1415, allocations: 117 kB / 0.5088 GB, free: 3.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1415, allocations: 0 / 0.5088 GB, free: 3.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.1418, allocations: 19.94 kB / 0.5088 GB, free: 3.602 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * 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 (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 Backend phase and start with SimCode phase: time 0.0003863/0.1422, allocations: 0.697 MB / 0.5095 GB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001016/0.1423, allocations: 31.98 kB / 0.5095 GB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.1423, allocations: 0 / 0.5095 GB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.225e-05/0.1423, allocations: 23.91 kB / 0.5095 GB, free: 2.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.1426, allocations: 8 kB / 0.5095 GB, free: 2.816 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.1441, allocations: 1.573 MB / 0.5111 GB, free: 1.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.1443, allocations: 0.7002 MB / 0.5118 GB, free: 436 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.087e-05/0.1444, allocations: 4.672 kB / 0.5118 GB, free: 432 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.98e-05/0.1444, allocations: 31.42 kB / 0.5118 GB, free: 400 kB / 350.1 MB Notification: Performance of SimCode: time 1.433e-06/0.1445, allocations: 4.109 kB / 0.5118 GB, free: 396 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.1648, allocations: 2.007 MB / 0.5138 GB, free: 14.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.525/7.69, allocations: 11.2 kB / 0.5138 GB, free: 14.44 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical5.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.FirstSteps.Electrical5_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_FirstSteps_Electrical5.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe 2>&1)