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.008285/0.008285, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.372/1.372, allocations: 222.9 MB / 239.4 MB, free: 4.504 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.001767/0.001767, allocations: 180.5 kB / 289.7 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03509/0.03509, allocations: 8.793 MB / 348.7 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 83.88 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09221/0.09371, allocations: 51.55 MB / 0.5029 GB, free: 9.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Signals): time 0.003232/0.09698, allocations: 2.207 MB / 0.5051 GB, free: 7.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008572/0.09787, allocations: 498.7 kB / 0.5055 GB, free: 7.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.09803, allocations: 4 kB / 0.5055 GB, free: 7.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.09819, allocations: 27.72 kB / 0.5056 GB, free: 7.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.371e-05/0.09829, allocations: 35.66 kB / 0.5056 GB, free: 7.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.09847, allocations: 47.92 kB / 0.5056 GB, free: 7.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000201/0.09868, allocations: 163.3 kB / 0.5058 GB, free: 6.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.09884, allocations: 70.08 kB / 0.5059 GB, free: 6.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.768e-05/0.09893, allocations: 59.8 kB / 0.5059 GB, free: 6.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.09904, allocations: 79.55 kB / 0.506 GB, free: 6.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.489e-05/0.09907, allocations: 12 kB / 0.506 GB, free: 6.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.392e-05/0.0991, allocations: 16 kB / 0.506 GB, free: 6.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.557e-05/0.09914, allocations: 31.92 kB / 0.5061 GB, free: 6.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.29e-05/0.09922, allocations: 75.61 kB / 0.5061 GB, free: 6.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002074/0.09943, allocations: 163.3 kB / 0.5063 GB, free: 6.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.09944, allocations: 4 kB / 0.5063 GB, free: 6.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09945, allocations: 0 / 0.5063 GB, free: 6.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.09946, allocations: 0 / 0.5063 GB, free: 6.488 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.0006213/0.1001, allocations: 462.7 kB / 0.5067 GB, free: 5.988 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1001, allocations: 16.03 kB / 0.5067 GB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.431e-05/0.1002, allocations: 50.67 kB / 0.5068 GB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.764e-05/0.1003, allocations: 16.84 kB / 0.5068 GB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.1006, allocations: 217.7 kB / 0.507 GB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.1006, allocations: 16.38 kB / 0.507 GB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.957e-05/0.1006, allocations: 12.38 kB / 0.507 GB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003107/0.1009, allocations: 168.7 kB / 0.5072 GB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1009, allocations: 4 kB / 0.5072 GB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.101, allocations: 8 kB / 0.5072 GB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.101, allocations: 4 kB / 0.5072 GB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.1012, allocations: 88.73 kB / 0.5073 GB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009951/0.1022, allocations: 0.7458 MB / 0.508 GB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.1024, allocations: 70.61 kB / 0.5081 GB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.951e-05/0.1025, allocations: 36.78 kB / 0.5081 GB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.1025, allocations: 8 kB / 0.5081 GB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.1025, allocations: 34.56 kB / 0.5082 GB, free: 4.352 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.936e-06/0.1025, allocations: 0 / 0.5082 GB, free: 4.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002829/0.1028, allocations: 105.7 kB / 0.5083 GB, free: 4.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.1029, allocations: 51.41 kB / 0.5083 GB, free: 4.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.103, allocations: 156.9 kB / 0.5085 GB, free: 4.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.103, allocations: 29.7 kB / 0.5085 GB, free: 3.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.3e-05/0.1031, allocations: 139.8 kB / 0.5086 GB, free: 3.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.1031, allocations: 31.73 kB / 0.5087 GB, free: 3.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.1032, allocations: 29.72 kB / 0.5087 GB, free: 3.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.447e-05/0.1033, allocations: 318.8 kB / 0.509 GB, free: 3.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.131e-05/0.1034, allocations: 31.92 kB / 0.509 GB, free: 3.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.944e-05/0.1035, allocations: 56.28 kB / 0.5091 GB, free: 3.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.1036, allocations: 96.2 kB / 0.5092 GB, free: 3.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1036, allocations: 0 / 0.5092 GB, free: 3.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002199/0.1039, allocations: 133.5 kB / 0.5093 GB, free: 3.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.1039, allocations: 4 kB / 0.5093 GB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1039, allocations: 4 kB / 0.5093 GB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1039, allocations: 0 / 0.5093 GB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.104, allocations: 27.92 kB / 0.5093 GB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.1041, allocations: 7.938 kB / 0.5093 GB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.839e-05/0.1041, allocations: 7.938 kB / 0.5094 GB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.1041, allocations: 8 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 9.31e-05/0.1042, allocations: 133.9 kB / 0.5095 GB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.1043, allocations: 23.81 kB / 0.5095 GB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.1043, allocations: 8.719 kB / 0.5095 GB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.1043, allocations: 4 kB / 0.5095 GB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1043, allocations: 3.938 kB / 0.5095 GB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1043, allocations: 0 / 0.5095 GB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002128/0.1046, allocations: 213.6 kB / 0.5097 GB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1046, allocations: 3.938 kB / 0.5097 GB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.1047, allocations: 19.98 kB / 0.5098 GB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.1047, allocations: 0 / 0.5098 GB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.1047, allocations: 0 / 0.5098 GB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1047, allocations: 4 kB / 0.5098 GB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.1047, allocations: 7.938 kB / 0.5098 GB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002627/0.105, allocations: 211.4 kB / 0.51 GB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.105, allocations: 81.06 kB / 0.51 GB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.1051, allocations: 8.016 kB / 0.5101 GB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.1052, allocations: 15.94 kB / 0.5101 GB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.979e-05/0.1052, allocations: 11.94 kB / 0.5101 GB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.1052, allocations: 7.984 kB / 0.5101 GB, free: 2.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.074e-05/0.1053, allocations: 111.3 kB / 0.5102 GB, free: 2.098 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1053, allocations: 0 / 0.5102 GB, free: 2.098 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002639/0.1056, allocations: 31.89 kB / 0.5102 GB, free: 2.066 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.0004983/0.1061, allocations: 0.7363 MB / 0.5109 GB, free: 1.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002038/0.1063, allocations: 71.83 kB / 0.511 GB, free: 1.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1063, allocations: 0 / 0.511 GB, free: 1.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.301e-05/0.1064, allocations: 32.05 kB / 0.511 GB, free: 1.203 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.1067, allocations: 22.17 kB / 0.5111 GB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.1086, allocations: 1.805 MB / 0.5128 GB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.1089, allocations: 0.7158 MB / 0.5135 GB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.304e-05/0.109, allocations: 8.875 kB / 0.5135 GB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.865e-05/0.1091, allocations: 39.42 kB / 0.5136 GB, free: 14.48 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1091, allocations: 0 / 0.5136 GB, free: 14.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02026/0.1293, allocations: 2.55 MB / 0.5161 GB, free: 12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.838/7.968, allocations: 6.75 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)