Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Signals.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.Signals,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Signals",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Signals,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Signals",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.009607/0.009608, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.558/1.558, 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.001671/0.001671, allocations: 192.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03662/0.03662, allocations: 8.8 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 79.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1198, allocations: 51.55 MB / 0.5029 GB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Signals): time 0.004248/0.1241, allocations: 2.207 MB / 0.5051 GB, free: 7.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1252, allocations: 498.7 kB / 0.5055 GB, free: 7.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002294/0.1255, allocations: 4 kB / 0.5055 GB, free: 7.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002231/0.1257, allocations: 31.72 kB / 0.5056 GB, free: 7.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.1259, allocations: 31.66 kB / 0.5056 GB, free: 7.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002824/0.1262, allocations: 51.94 kB / 0.5056 GB, free: 7.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003038/0.1265, allocations: 163.3 kB / 0.5058 GB, free: 7.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002779/0.1268, allocations: 70.08 kB / 0.5059 GB, free: 6.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.127, allocations: 63.78 kB / 0.5059 GB, free: 6.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.1271, allocations: 71.62 kB / 0.506 GB, free: 6.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.622e-05/0.1271, allocations: 12 kB / 0.506 GB, free: 6.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.068e-05/0.1272, allocations: 16 kB / 0.506 GB, free: 6.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.252e-05/0.1272, allocations: 31.86 kB / 0.5061 GB, free: 6.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.1273, allocations: 79.59 kB / 0.5061 GB, free: 6.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003056/0.1277, allocations: 167.3 kB / 0.5063 GB, free: 6.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1277, allocations: 0 / 0.5063 GB, free: 6.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1277, allocations: 0 / 0.5063 GB, free: 6.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.1277, allocations: 0 / 0.5063 GB, free: 6.5 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0009413/0.1287, allocations: 466.7 kB / 0.5067 GB, free: 5.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.1287, allocations: 12.03 kB / 0.5067 GB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.66e-05/0.1288, allocations: 46.73 kB / 0.5068 GB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.896e-05/0.1289, allocations: 16.84 kB / 0.5068 GB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004137/0.1293, allocations: 217.7 kB / 0.507 GB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.1293, allocations: 12.38 kB / 0.507 GB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.708e-05/0.1294, allocations: 16.38 kB / 0.507 GB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.1298, allocations: 172.7 kB / 0.5072 GB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1298, allocations: 0 / 0.5072 GB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.1298, allocations: 8 kB / 0.5072 GB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.1298, allocations: 4 kB / 0.5072 GB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002378/0.1301, allocations: 92.73 kB / 0.5073 GB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.1312, allocations: 0.738 MB / 0.508 GB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.1314, allocations: 74.61 kB / 0.5081 GB, free: 4.457 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.706e-05/0.1315, allocations: 48.81 kB / 0.5081 GB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.197e-05/0.1316, allocations: 0 / 0.5081 GB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.1316, allocations: 30.56 kB / 0.5082 GB, free: 4.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 8.91e-07/0.1316, allocations: 3.938 kB / 0.5082 GB, free: 4.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003187/0.1319, allocations: 105.7 kB / 0.5083 GB, free: 4.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.132, allocations: 59.39 kB / 0.5083 GB, free: 4.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.1323, allocations: 156.9 kB / 0.5085 GB, free: 4.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.1323, allocations: 25.7 kB / 0.5085 GB, free: 3.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1324, allocations: 135.8 kB / 0.5086 GB, free: 3.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.93e-05/0.1324, allocations: 31.73 kB / 0.5087 GB, free: 3.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.567e-05/0.1325, allocations: 29.72 kB / 0.5087 GB, free: 3.785 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.1327, allocations: 318.8 kB / 0.509 GB, free: 3.465 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.1328, allocations: 27.98 kB / 0.509 GB, free: 3.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.82e-05/0.1329, allocations: 75.89 kB / 0.5091 GB, free: 3.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.1331, allocations: 92.16 kB / 0.5092 GB, free: 3.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1331, allocations: 0 / 0.5092 GB, free: 3.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002445/0.1333, allocations: 129.5 kB / 0.5093 GB, free: 3.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1334, allocations: 4 kB / 0.5093 GB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.1334, allocations: 4 kB / 0.5093 GB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.1334, allocations: 0 / 0.5093 GB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.1335, allocations: 23.98 kB / 0.5093 GB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.1335, allocations: 11.88 kB / 0.5094 GB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.955e-05/0.1336, allocations: 20.05 kB / 0.5094 GB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.1337, allocations: 4 kB / 0.5094 GB, free: 3.047 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001488/0.1338, allocations: 129.8 kB / 0.5095 GB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.903e-05/0.1339, allocations: 15.84 kB / 0.5095 GB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.282e-05/0.1339, allocations: 8.719 kB / 0.5095 GB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1339, allocations: 4 kB / 0.5095 GB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1339, allocations: 3.938 kB / 0.5095 GB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1339, allocations: 0 / 0.5095 GB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/0.1342, allocations: 217.6 kB / 0.5097 GB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1342, allocations: 8 kB / 0.5097 GB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.1343, allocations: 12 kB / 0.5098 GB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.321e-06/0.1343, allocations: 0 / 0.5098 GB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.1343, allocations: 11.92 kB / 0.5098 GB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.1343, allocations: 0 / 0.5098 GB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1344, allocations: 7.938 kB / 0.5098 GB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003036/0.1347, allocations: 203.4 kB / 0.51 GB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.438e-05/0.1347, allocations: 89.11 kB / 0.5101 GB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.1348, allocations: 11.97 kB / 0.5101 GB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.441e-05/0.1349, allocations: 4 kB / 0.5101 GB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.744e-05/0.1349, allocations: 7.922 kB / 0.5101 GB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.1349, allocations: 4 kB / 0.5101 GB, free: 2.227 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.059e-05/0.135, allocations: 115.2 kB / 0.5102 GB, free: 2.113 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.135, allocations: 0 / 0.5102 GB, free: 2.113 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000267/0.1353, allocations: 35.89 kB / 0.5102 GB, free: 2.078 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor.i,integrator.y) * 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 (7): * Single equations (assignments): 7 * 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.0006267/0.1359, allocations: 0.7359 MB / 0.5109 GB, free: 1.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002067/0.1362, allocations: 63.91 kB / 0.511 GB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.1362, allocations: 0 / 0.511 GB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.702e-05/0.1362, allocations: 40.22 kB / 0.511 GB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.1366, allocations: 22.19 kB / 0.5111 GB, free: 1.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.1391, allocations: 1.793 MB / 0.5128 GB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.1395, allocations: 0.7119 MB / 0.5135 GB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.604e-05/0.1396, allocations: 12.88 kB / 0.5135 GB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.895e-05/0.1397, allocations: 39.42 kB / 0.5136 GB, free: 14.5 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1397, allocations: 0 / 0.5136 GB, free: 14.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02245/0.1621, allocations: 2.565 MB / 0.5161 GB, free: 12.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.945/8.107, allocations: 3.938 kB / 0.5161 GB, free: 12 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Electrical.Signals.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Signals.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Signals.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Signals.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.Signals_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Electrical_Signals.fmu > HanserModelica_HanserModelica.Electrical.Signals.pipe 2>&1)