Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.RLSeriesFrequencySweep.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.RLSeriesFrequencySweep,fileNamePrefix="HanserModelica_HanserModelica_Electrical_RLSeriesFrequencySweep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.RLSeriesFrequencySweep,fileNamePrefix="HanserModelica_HanserModelica_Electrical_RLSeriesFrequencySweep",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.005311/0.005311, allocations: 99.34 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.389/1.389, allocations: 222.9 MB / 239.4 MB, free: 4.398 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.001652/0.001651, allocations: 184.5 kB / 289.7 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03388/0.03388, allocations: 8.81 MB / 348.7 MB, free: 4.574 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 75.88 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1119, allocations: 51.57 MB / 0.5029 GB, free: 9.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.RLSeriesFrequencySweep): time 0.005617/0.1175, allocations: 3.974 MB / 0.5068 GB, free: 5.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002799/0.1204, allocations: 1.573 MB / 0.5083 GB, free: 4.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004002/0.1208, allocations: 12 kB / 0.5083 GB, free: 4.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001948/0.1228, allocations: 0.77 MB / 0.5091 GB, free: 3.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001256/0.1241, allocations: 0.5323 MB / 0.5096 GB, free: 3.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009496/0.125, allocations: 492.8 kB / 0.5101 GB, free: 2.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000645/0.1257, allocations: 0.541 MB / 0.5106 GB, free: 2.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006942/0.1264, allocations: 500 kB / 0.5111 GB, free: 1.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003085/0.1267, allocations: 247 kB / 0.5113 GB, free: 1.312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003015/0.127, allocations: 302.8 kB / 0.5116 GB, free: 1.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.506e-05/0.1271, allocations: 56 kB / 0.5117 GB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000405/0.1275, allocations: 215.9 kB / 0.5119 GB, free: 0.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.938e-05/0.1276, allocations: 131.5 kB / 0.512 GB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002215/0.1278, allocations: 270.7 kB / 0.5123 GB, free: 364 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008993/0.1287, allocations: 0.8056 MB / 0.513 GB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1288, allocations: 0 / 0.513 GB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1288, allocations: 0 / 0.513 GB, free: 15.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.1288, allocations: 0 / 0.513 GB, free: 15.55 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001982/0.1308, allocations: 0.951 MB / 0.514 GB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1308, allocations: 12.02 kB / 0.514 GB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001395/0.131, allocations: 115.9 kB / 0.5141 GB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002707/0.1337, allocations: 408.2 kB / 0.5145 GB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005929/0.1343, allocations: 365.4 kB / 0.5148 GB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.444e-05/0.1343, allocations: 49.44 kB / 0.5149 GB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-05/0.1344, allocations: 63.95 kB / 0.5149 GB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.1355, allocations: 0.6354 MB / 0.5156 GB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.1356, allocations: 4 kB / 0.5156 GB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.37e-05/0.1356, allocations: 28 kB / 0.5156 GB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.1357, allocations: 16 kB / 0.5156 GB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.1368, allocations: 0.5828 MB / 0.5162 GB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003032/0.1398, allocations: 2.17 MB / 0.5183 GB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.1413, allocations: 1.185 MB / 0.5194 GB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000382/0.1417, allocations: 199 kB / 0.5196 GB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.922e-05/0.1418, allocations: 93.09 kB / 0.5197 GB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.1418, allocations: 34.56 kB / 0.5198 GB, free: 8.199 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.374e-06/0.1418, allocations: 0 / 0.5198 GB, free: 8.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00164/0.1435, allocations: 0.6864 MB / 0.5204 GB, free: 7.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.1436, allocations: 55.41 kB / 0.5205 GB, free: 7.418 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.1439, allocations: 278.5 kB / 0.5207 GB, free: 7.145 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.1439, allocations: 33.7 kB / 0.5208 GB, free: 7.105 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.1441, allocations: 252.9 kB / 0.521 GB, free: 6.852 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.1442, allocations: 162.6 kB / 0.5212 GB, free: 6.691 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.1443, allocations: 82.25 kB / 0.5213 GB, free: 6.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1445, allocations: 338.8 kB / 0.5216 GB, free: 6.262 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003281/0.1448, allocations: 155 kB / 0.5217 GB, free: 6.109 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/0.1452, allocations: 257.9 kB / 0.522 GB, free: 5.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007414/0.146, allocations: 433.7 kB / 0.5224 GB, free: 5.344 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.146, allocations: 4 kB / 0.5224 GB, free: 5.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009936/0.147, allocations: 0.5217 MB / 0.5229 GB, free: 4.809 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.147, allocations: 8.406 kB / 0.5229 GB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.147, allocations: 4 kB / 0.5229 GB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002425/0.1473, allocations: 60.77 kB / 0.523 GB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004242/0.1477, allocations: 103.8 kB / 0.5231 GB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.1493, allocations: 1.759 MB / 0.5248 GB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003352/0.1497, allocations: 59.61 kB / 0.5248 GB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.1497, allocations: 24.06 kB / 0.5249 GB, free: 2.652 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000451/0.1502, allocations: 273.2 kB / 0.5251 GB, free: 2.383 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000357/0.1506, allocations: 253.5 kB / 0.5254 GB, free: 2.094 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00066/0.1512, allocations: 419.6 kB / 0.5258 GB, free: 1.641 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.994e-06/0.1512, allocations: 4 kB / 0.5258 GB, free: 1.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.0009726/0.1522, allocations: 0.5056 MB / 0.5263 GB, free: 1.121 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.1522, allocations: 12 kB / 0.5263 GB, free: 1.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.1522, allocations: 4 kB / 0.5263 GB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.1524, allocations: 52.83 kB / 0.5263 GB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003728/0.1528, allocations: 99.81 kB / 0.5264 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2517/0.4045, allocations: 1.761 MB / 0.5281 GB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004502/0.405, allocations: 43.34 kB / 0.5282 GB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.496e-05/0.405, allocations: 21.06 kB / 0.5282 GB, free: 22.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001579/0.4052, allocations: 206.8 kB / 0.5284 GB, free: 22.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.086e-05/0.4053, allocations: 35.22 kB / 0.5284 GB, free: 22.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001011/0.4063, allocations: 0.5028 MB / 0.5289 GB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.4063, allocations: 8.578 kB / 0.5289 GB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.4063, allocations: 3.828 kB / 0.5289 GB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.4063, allocations: 3.609 kB / 0.5289 GB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/0.4078, allocations: 1.083 MB / 0.53 GB, free: 22.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.4078, allocations: 2.812 kB / 0.53 GB, free: 22.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000363/0.4082, allocations: 83.2 kB / 0.5301 GB, free: 22.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001717/0.4084, allocations: 50.75 kB / 0.5301 GB, free: 22.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.4084, allocations: 13.89 kB / 0.5301 GB, free: 22.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.4095, allocations: 1.766 MB / 0.5319 GB, free: 20.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4095, allocations: 0 / 0.5319 GB, free: 20.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.4107, allocations: 0.7474 MB / 0.5326 GB, free: 20.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.4109, allocations: 148.8 kB / 0.5327 GB, free: 20.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.603e-05/0.4109, allocations: 10.23 kB / 0.5328 GB, free: 20.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.4112, allocations: 18.12 kB / 0.5328 GB, free: 20.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.782e-05/0.4113, allocations: 37.25 kB / 0.5328 GB, free: 20.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.4113, allocations: 13.88 kB / 0.5328 GB, free: 20.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000156/0.4115, allocations: 198.4 kB / 0.533 GB, free: 20.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4115, allocations: 0 / 0.533 GB, free: 20.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008271/0.4123, allocations: 243.1 kB / 0.5332 GB, free: 20.35 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001504/0.4138, allocations: 1.323 MB / 0.5345 GB, free: 19.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.4154, allocations: 0.8918 MB / 0.5354 GB, free: 19.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4154, allocations: 0 / 0.5354 GB, free: 19.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005224/0.4159, allocations: 341.1 kB / 0.5357 GB, free: 19.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.4164, allocations: 46.06 kB / 0.5358 GB, free: 19.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005164/0.4216, allocations: 3.792 MB / 0.5395 GB, free: 17.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.4219, allocations: 0.8249 MB / 0.5403 GB, free: 16.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003224/0.4223, allocations: 80.59 kB / 0.5404 GB, free: 16.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000234/0.4225, allocations: 163.9 kB / 0.5405 GB, free: 16.86 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4225, allocations: 3.75 kB / 0.5405 GB, free: 16.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04756/0.4701, allocations: 8.709 MB / 0.549 GB, free: 15.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.953/10.42, allocations: 8.125 kB / 0.549 GB, free: 15.43 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Electrical.RLSeriesFrequencySweep.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.RLSeriesFrequencySweep.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.RLSeriesFrequencySweep.pipe >> ../files/HanserModelica_HanserModelica.Electrical.RLSeriesFrequencySweep.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.RLSeriesFrequencySweep_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_Electrical_RLSeriesFrequencySweep.fmu > HanserModelica_HanserModelica.Electrical.RLSeriesFrequencySweep.pipe 2>&1)