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.00614/0.00614, allocations: 95.64 kB / 15.73 MB, free: 6.047 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.531/1.531, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001601/0.001601, allocations: 192.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03772/0.03772, allocations: 8.798 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002318/0.002318, allocations: 80.2 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1177, allocations: 51.56 MB / 0.5029 GB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical5): time 0.003402/0.1211, allocations: 1.807 MB / 0.5047 GB, free: 8.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009257/0.1221, allocations: 462.8 kB / 0.5051 GB, free: 7.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.1222, allocations: 0 / 0.5051 GB, free: 7.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.1224, allocations: 23.8 kB / 0.5051 GB, free: 7.695 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.721e-05/0.1225, allocations: 35.7 kB / 0.5052 GB, free: 7.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000203/0.1227, allocations: 27.95 kB / 0.5052 GB, free: 7.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002981/0.123, allocations: 119.5 kB / 0.5053 GB, free: 7.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.1232, allocations: 49.05 kB / 0.5054 GB, free: 7.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.664e-05/0.1233, allocations: 43.8 kB / 0.5054 GB, free: 7.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.1234, allocations: 51.78 kB / 0.5055 GB, free: 7.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.1235, allocations: 8 kB / 0.5055 GB, free: 7.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.125e-05/0.1235, allocations: 12 kB / 0.5055 GB, free: 7.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.351e-05/0.1236, allocations: 27.91 kB / 0.5055 GB, free: 7.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.376e-05/0.1236, allocations: 51.73 kB / 0.5055 GB, free: 7.277 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002442/0.1239, allocations: 119.5 kB / 0.5057 GB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1239, allocations: 0 / 0.5057 GB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.1239, allocations: 0 / 0.5057 GB, free: 7.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.1239, allocations: 3.938 kB / 0.5057 GB, free: 7.156 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.0007462/0.1247, allocations: 415 kB / 0.5061 GB, free: 6.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.121e-05/0.1248, allocations: 12.03 kB / 0.5061 GB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.404e-05/0.1248, allocations: 46.73 kB / 0.5061 GB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.598e-05/0.1249, allocations: 12.84 kB / 0.5061 GB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.1252, allocations: 204.1 kB / 0.5063 GB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.1252, allocations: 4.375 kB / 0.5063 GB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.1253, allocations: 12.38 kB / 0.5063 GB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.1255, allocations: 113.7 kB / 0.5064 GB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1255, allocations: 3.984 kB / 0.5065 GB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.1255, allocations: 8 kB / 0.5065 GB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.1256, allocations: 0 / 0.5065 GB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.1257, allocations: 63.97 kB / 0.5065 GB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007775/0.1265, allocations: 498.3 kB / 0.507 GB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.1266, allocations: 50.5 kB / 0.507 GB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.427e-05/0.1266, allocations: 16.86 kB / 0.5071 GB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.075e-06/0.1266, allocations: 0 / 0.5071 GB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.1267, allocations: 34.56 kB / 0.5071 GB, free: 5.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.71e-07/0.1267, allocations: 0 / 0.5071 GB, free: 5.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001911/0.1269, allocations: 61.73 kB / 0.5072 GB, free: 5.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.1269, allocations: 59.34 kB / 0.5072 GB, free: 5.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.1271, allocations: 147.1 kB / 0.5073 GB, free: 5.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.1271, allocations: 25.7 kB / 0.5074 GB, free: 5.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.951e-05/0.1272, allocations: 120 kB / 0.5075 GB, free: 5.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.132e-05/0.1272, allocations: 15.91 kB / 0.5075 GB, free: 5.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.277e-05/0.1273, allocations: 21.7 kB / 0.5075 GB, free: 5.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1274, allocations: 322.8 kB / 0.5078 GB, free: 4.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.101e-05/0.1275, allocations: 11.98 kB / 0.5078 GB, free: 4.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.611e-05/0.1275, allocations: 34.58 kB / 0.5079 GB, free: 4.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.101e-05/0.1276, allocations: 58.5 kB / 0.5079 GB, free: 4.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1276, allocations: 0 / 0.5079 GB, free: 4.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001211/0.1278, allocations: 81.58 kB / 0.508 GB, free: 4.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.1278, allocations: 8 kB / 0.508 GB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1278, allocations: 4.062 kB / 0.508 GB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.1278, allocations: 0 / 0.508 GB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.449e-05/0.1279, allocations: 12 kB / 0.508 GB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.1279, allocations: 7.938 kB / 0.508 GB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.351e-05/0.128, allocations: 7.891 kB / 0.508 GB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.128, allocations: 4 kB / 0.5081 GB, free: 4.445 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 0.0001047/0.1281, allocations: 129.7 kB / 0.5082 GB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/0.1281, allocations: 11.89 kB / 0.5082 GB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.09e-05/0.1282, allocations: 8.25 kB / 0.5082 GB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1282, allocations: 4 kB / 0.5082 GB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1282, allocations: 0 / 0.5082 GB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1282, allocations: 0 / 0.5082 GB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.1284, allocations: 201.5 kB / 0.5084 GB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1284, allocations: 0 / 0.5084 GB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.725e-05/0.1285, allocations: 8 kB / 0.5084 GB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1285, allocations: 0 / 0.5084 GB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.1285, allocations: 0 / 0.5084 GB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1285, allocations: 0 / 0.5084 GB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1285, allocations: 0 / 0.5084 GB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001954/0.1287, allocations: 175.6 kB / 0.5086 GB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.003e-05/0.1288, allocations: 89.09 kB / 0.5087 GB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.1288, allocations: 0 / 0.5087 GB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.191e-05/0.1289, allocations: 4 kB / 0.5087 GB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.747e-05/0.129, allocations: 7.922 kB / 0.5087 GB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.129, allocations: 4 kB / 0.5087 GB, free: 3.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.535e-05/0.1291, allocations: 105.3 kB / 0.5088 GB, free: 3.613 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1291, allocations: 4.062 kB / 0.5088 GB, free: 3.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002334/0.1293, allocations: 23.94 kB / 0.5088 GB, free: 3.586 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.0005684/0.1299, allocations: 0.693 MB / 0.5095 GB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001313/0.13, allocations: 39.92 kB / 0.5095 GB, free: 2.828 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.13, allocations: 4.188 kB / 0.5095 GB, free: 2.824 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.11e-05/0.1301, allocations: 12 kB / 0.5095 GB, free: 2.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.1303, allocations: 9.828 kB / 0.5095 GB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.132, allocations: 1.581 MB / 0.5111 GB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.1324, allocations: 0.7003 MB / 0.5118 GB, free: 412 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.115e-05/0.1324, allocations: 16.59 kB / 0.5118 GB, free: 396 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.439e-05/0.1325, allocations: 27.44 kB / 0.5118 GB, free: 368 kB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1325, allocations: 0 / 0.5118 GB, free: 368 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02663/0.1591, allocations: 2.008 MB / 0.5138 GB, free: 14.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.834/7.993, allocations: 16.03 kB / 0.5138 GB, free: 14.41 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)