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.005107/0.005107, allocations: 99.58 kB / 15.73 MB, free: 6.016 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.492/1.492, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.001813/0.001813, allocations: 196.5 kB / 289.7 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03733/0.03733, allocations: 8.805 MB / 348.7 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002309/0.002309, allocations: 87.84 kB / 463.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1285, allocations: 51.55 MB / 0.5029 GB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.RLSeriesFrequencySweep): time 0.005986/0.1345, allocations: 3.98 MB / 0.5068 GB, free: 5.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003061/0.1376, allocations: 1.581 MB / 0.5083 GB, free: 4.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003072/0.138, allocations: 11.94 kB / 0.5083 GB, free: 4.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001962/0.1399, allocations: 0.7619 MB / 0.5091 GB, free: 3.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00127/0.1412, allocations: 0.5363 MB / 0.5096 GB, free: 3.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1423, allocations: 489.9 kB / 0.5101 GB, free: 2.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007826/0.1431, allocations: 0.537 MB / 0.5106 GB, free: 2.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008142/0.1439, allocations: 0.5 MB / 0.5111 GB, free: 1.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003502/0.1443, allocations: 243.1 kB / 0.5113 GB, free: 1.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003578/0.1446, allocations: 302.8 kB / 0.5116 GB, free: 1.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.046e-05/0.1447, allocations: 56 kB / 0.5117 GB, free: 0.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004371/0.1452, allocations: 219.9 kB / 0.5119 GB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.1453, allocations: 131.5 kB / 0.512 GB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002499/0.1456, allocations: 266.7 kB / 0.5123 GB, free: 360 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.1466, allocations: 0.8057 MB / 0.513 GB, free: 15.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1466, allocations: 0 / 0.513 GB, free: 15.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1466, allocations: 0 / 0.513 GB, free: 15.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.1467, allocations: 0 / 0.513 GB, free: 15.54 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.00219/0.1489, allocations: 0.951 MB / 0.514 GB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.1489, allocations: 8.031 kB / 0.514 GB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001712/0.1491, allocations: 115.9 kB / 0.5141 GB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00279/0.1519, allocations: 408.2 kB / 0.5145 GB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007106/0.1526, allocations: 365.4 kB / 0.5148 GB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.048e-05/0.1527, allocations: 49.44 kB / 0.5149 GB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.1528, allocations: 67.94 kB / 0.5149 GB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.154, allocations: 0.6354 MB / 0.5156 GB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.1541, allocations: 0 / 0.5156 GB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.232e-05/0.1541, allocations: 28 kB / 0.5156 GB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.1542, allocations: 15.94 kB / 0.5156 GB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.1554, allocations: 0.5751 MB / 0.5162 GB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003399/0.1588, allocations: 2.174 MB / 0.5183 GB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.1605, allocations: 1.194 MB / 0.5195 GB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003965/0.1609, allocations: 188.8 kB / 0.5196 GB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001116/0.161, allocations: 97.39 kB / 0.5197 GB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/0.161, allocations: 38.56 kB / 0.5198 GB, free: 8.191 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.124e-06/0.1611, allocations: 0 / 0.5198 GB, free: 8.191 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001769/0.1628, allocations: 0.6825 MB / 0.5204 GB, free: 7.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.1629, allocations: 55.41 kB / 0.5205 GB, free: 7.414 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000311/0.1632, allocations: 274.6 kB / 0.5207 GB, free: 7.145 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.795e-05/0.1633, allocations: 33.7 kB / 0.5208 GB, free: 7.105 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.1634, allocations: 260.8 kB / 0.521 GB, free: 6.844 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.1636, allocations: 158.6 kB / 0.5212 GB, free: 6.688 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.1637, allocations: 82.25 kB / 0.5213 GB, free: 6.598 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.1639, allocations: 342.8 kB / 0.5216 GB, free: 6.254 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003749/0.1643, allocations: 159 kB / 0.5217 GB, free: 6.098 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004324/0.1648, allocations: 253.9 kB / 0.522 GB, free: 5.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008011/0.1656, allocations: 433.7 kB / 0.5224 GB, free: 5.336 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1656, allocations: 0 / 0.5224 GB, free: 5.336 MB / 366.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001111/0.1667, allocations: 0.5338 MB / 0.5229 GB, free: 4.793 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.1667, allocations: 4 kB / 0.5229 GB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.1667, allocations: 4 kB / 0.5229 GB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002948/0.167, allocations: 56.77 kB / 0.523 GB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004378/0.1675, allocations: 99.83 kB / 0.5231 GB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001978/0.1695, allocations: 1.763 MB / 0.5248 GB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003697/0.1699, allocations: 67.61 kB / 0.5249 GB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.362e-05/0.1699, allocations: 12 kB / 0.5249 GB, free: 2.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005334/0.1705, allocations: 273.2 kB / 0.5251 GB, free: 2.379 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004177/0.1709, allocations: 249.6 kB / 0.5254 GB, free: 2.094 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007808/0.1717, allocations: 423.6 kB / 0.5258 GB, free: 1.637 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.41e-06/0.1717, allocations: 4 kB / 0.5258 GB, free: 1.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.001117/0.1728, allocations: 0.5133 MB / 0.5263 GB, free: 1.109 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.1728, allocations: 5.562 kB / 0.5263 GB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1729, allocations: 4 kB / 0.5263 GB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002006/0.1731, allocations: 56.77 kB / 0.5263 GB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/0.1735, allocations: 91.89 kB / 0.5264 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2425/0.416, allocations: 1.763 MB / 0.5281 GB, free: 22.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004293/0.4164, allocations: 37.36 kB / 0.5282 GB, free: 22.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.746e-05/0.4165, allocations: 22.86 kB / 0.5282 GB, free: 22.7 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.0001783/0.4167, allocations: 214.6 kB / 0.5284 GB, free: 22.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.529e-05/0.4168, allocations: 30.19 kB / 0.5284 GB, free: 22.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.4178, allocations: 0.5071 MB / 0.5289 GB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.4178, allocations: 3.25 kB / 0.5289 GB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4178, allocations: 4.875 kB / 0.5289 GB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4178, allocations: 4.859 kB / 0.5289 GB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001461/0.4193, allocations: 1.09 MB / 0.53 GB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.4193, allocations: 0.8438 kB / 0.53 GB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003669/0.4197, allocations: 78.67 kB / 0.5301 GB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001922/0.4199, allocations: 58.42 kB / 0.5301 GB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.4199, allocations: 11.31 kB / 0.5302 GB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.4212, allocations: 1.758 MB / 0.5319 GB, free: 20.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4212, allocations: 3.5 kB / 0.5319 GB, free: 20.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.4225, allocations: 0.7444 MB / 0.5326 GB, free: 20.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.4226, allocations: 151.4 kB / 0.5327 GB, free: 20.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.428e-05/0.4227, allocations: 11.78 kB / 0.5328 GB, free: 20.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.4229, allocations: 15.14 kB / 0.5328 GB, free: 20.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.423, allocations: 38.44 kB / 0.5328 GB, free: 20.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/0.4231, allocations: 14.97 kB / 0.5328 GB, free: 20.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001793/0.4233, allocations: 196.1 kB / 0.533 GB, free: 20.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4233, allocations: 0 / 0.533 GB, free: 20.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008802/0.4242, allocations: 243.8 kB / 0.5332 GB, free: 20.28 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.001603/0.4258, allocations: 1.325 MB / 0.5345 GB, free: 19.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.4275, allocations: 0.8886 MB / 0.5354 GB, free: 19.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4276, allocations: 1.062 kB / 0.5354 GB, free: 19.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005383/0.4281, allocations: 342.7 kB / 0.5357 GB, free: 19.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000512/0.4286, allocations: 38.7 kB / 0.5358 GB, free: 19.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005221/0.4339, allocations: 3.806 MB / 0.5395 GB, free: 17.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.4343, allocations: 0.8251 MB / 0.5403 GB, free: 16.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003375/0.4346, allocations: 72.55 kB / 0.5404 GB, free: 16.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002243/0.4349, allocations: 163.2 kB / 0.5405 GB, free: 16.78 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4349, allocations: 0 / 0.5405 GB, free: 16.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04512/0.48, allocations: 8.718 MB / 0.549 GB, free: 15.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.14/10.62, allocations: 4.344 kB / 0.549 GB, free: 15.34 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)