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.008472/0.008473, 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.459/1.459, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.001458/0.001458, allocations: 192.4 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03748/0.03748, allocations: 8.806 MB / 348.7 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 71.88 kB / 463.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1062, allocations: 51.56 MB / 0.5029 GB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Signals): time 0.004333/0.1106, allocations: 2.205 MB / 0.5051 GB, free: 7.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.1119, allocations: 0.4909 MB / 0.5055 GB, free: 7.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.1121, allocations: 0 / 0.5055 GB, free: 7.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.1123, allocations: 27.72 kB / 0.5056 GB, free: 7.211 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.958e-05/0.1125, allocations: 35.64 kB / 0.5056 GB, free: 7.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.1127, allocations: 55.94 kB / 0.5057 GB, free: 7.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002263/0.1129, allocations: 167.3 kB / 0.5058 GB, free: 6.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.1131, allocations: 62.08 kB / 0.5059 GB, free: 6.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.661e-05/0.1132, allocations: 59.8 kB / 0.5059 GB, free: 6.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.1133, allocations: 75.61 kB / 0.506 GB, free: 6.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.179e-05/0.1134, allocations: 16 kB / 0.506 GB, free: 6.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.946e-05/0.1134, allocations: 12 kB / 0.506 GB, free: 6.734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.339e-05/0.1134, allocations: 31.86 kB / 0.5061 GB, free: 6.703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.44e-05/0.1135, allocations: 79.59 kB / 0.5061 GB, free: 6.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.1138, allocations: 163.3 kB / 0.5063 GB, free: 6.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1138, allocations: 4 kB / 0.5063 GB, free: 6.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1138, allocations: 0 / 0.5063 GB, free: 6.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1138, allocations: 0 / 0.5063 GB, free: 6.461 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.0006916/0.1145, allocations: 466.7 kB / 0.5067 GB, free: 5.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.1146, allocations: 12.02 kB / 0.5067 GB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.65e-05/0.1146, allocations: 42.75 kB / 0.5068 GB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.031e-05/0.1147, allocations: 20.83 kB / 0.5068 GB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.1151, allocations: 216.1 kB / 0.507 GB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.1151, allocations: 12.38 kB / 0.507 GB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/0.1152, allocations: 12.38 kB / 0.507 GB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003504/0.1155, allocations: 180.7 kB / 0.5072 GB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1155, allocations: 0 / 0.5072 GB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.1156, allocations: 4 kB / 0.5072 GB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.1156, allocations: 4 kB / 0.5072 GB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002172/0.1158, allocations: 96.67 kB / 0.5073 GB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.1169, allocations: 0.7381 MB / 0.508 GB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/0.1171, allocations: 78.61 kB / 0.5081 GB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.169e-05/0.1172, allocations: 32.84 kB / 0.5081 GB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.1172, allocations: 0 / 0.5081 GB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.1172, allocations: 34.5 kB / 0.5082 GB, free: 4.332 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.1172, allocations: 0 / 0.5082 GB, free: 4.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002828/0.1175, allocations: 97.78 kB / 0.5083 GB, free: 4.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.1176, allocations: 59.34 kB / 0.5083 GB, free: 4.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.1177, allocations: 160.9 kB / 0.5085 GB, free: 3.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.1178, allocations: 29.7 kB / 0.5085 GB, free: 3.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.805e-05/0.1179, allocations: 139.7 kB / 0.5086 GB, free: 3.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.1179, allocations: 31.73 kB / 0.5087 GB, free: 3.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.145e-05/0.118, allocations: 25.72 kB / 0.5087 GB, free: 3.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1181, allocations: 322.8 kB / 0.509 GB, free: 3.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.008e-05/0.1182, allocations: 23.98 kB / 0.509 GB, free: 3.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.365e-05/0.1183, allocations: 68.22 kB / 0.5091 GB, free: 3.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.1185, allocations: 88.2 kB / 0.5092 GB, free: 3.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.1185, allocations: 8 kB / 0.5092 GB, free: 3.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002219/0.1187, allocations: 125.5 kB / 0.5093 GB, free: 3.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1187, allocations: 8 kB / 0.5093 GB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1187, allocations: 0 / 0.5093 GB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1188, allocations: 4 kB / 0.5093 GB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.1189, allocations: 23.98 kB / 0.5093 GB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.1189, allocations: 7.875 kB / 0.5093 GB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.876e-05/0.119, allocations: 16.06 kB / 0.5094 GB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.119, allocations: 4.094 kB / 0.5094 GB, free: 3.023 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.0001122/0.1191, allocations: 137.6 kB / 0.5095 GB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.531e-05/0.1192, allocations: 15.91 kB / 0.5095 GB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.136e-05/0.1192, allocations: 12.72 kB / 0.5095 GB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1192, allocations: 0 / 0.5095 GB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1192, allocations: 3.938 kB / 0.5095 GB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1192, allocations: 0 / 0.5095 GB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002419/0.1195, allocations: 221.6 kB / 0.5097 GB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1195, allocations: 4 kB / 0.5097 GB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.1196, allocations: 19.94 kB / 0.5098 GB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.1196, allocations: 3.984 kB / 0.5098 GB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.1196, allocations: 4 kB / 0.5098 GB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1196, allocations: 0 / 0.5098 GB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.1196, allocations: 3.938 kB / 0.5098 GB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002874/0.1199, allocations: 207.4 kB / 0.51 GB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.261e-05/0.12, allocations: 97.14 kB / 0.5101 GB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.12, allocations: 0 / 0.5101 GB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.535e-05/0.1201, allocations: 4 kB / 0.5101 GB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.1201, allocations: 15.86 kB / 0.5101 GB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.1202, allocations: 0 / 0.5101 GB, free: 2.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.509e-05/0.1202, allocations: 111.3 kB / 0.5102 GB, free: 2.082 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1203, allocations: 0 / 0.5102 GB, free: 2.082 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002529/0.1205, allocations: 35.89 kB / 0.5102 GB, free: 2.047 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.0005658/0.1211, allocations: 0.7362 MB / 0.5109 GB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001887/0.1213, allocations: 67.91 kB / 0.511 GB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1213, allocations: 0 / 0.511 GB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.938e-05/0.1214, allocations: 40.28 kB / 0.511 GB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.1217, allocations: 25.33 kB / 0.5111 GB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.1237, allocations: 1.792 MB / 0.5128 GB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/0.1241, allocations: 0.7119 MB / 0.5135 GB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.402e-05/0.1242, allocations: 12.88 kB / 0.5135 GB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.278e-05/0.1242, allocations: 47.36 kB / 0.5136 GB, free: 14.45 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1242, allocations: 0 / 0.5136 GB, free: 14.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02465/0.1489, allocations: 2.561 MB / 0.5161 GB, free: 11.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.178/8.327, allocations: 14.75 kB / 0.5161 GB, free: 11.95 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)