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.001677/0.001677, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 239.2 MB, free: 4.598 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.00137/0.00137, allocations: 195.4 kB / 289.6 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03482/0.03482, allocations: 8.796 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 81.73 kB / 411.2 MB, free: 42.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09605/0.09764, allocations: 51.56 MB / 462.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.RLSeriesFrequencySweep): time 0.00562/0.1033, allocations: 3.97 MB / 466.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003055/0.1064, allocations: 1.569 MB / 468.3 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003005/0.1067, allocations: 12 kB / 468.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001787/0.1085, allocations: 0.7769 MB / 469.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001124/0.1097, allocations: 0.5247 MB / 469.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009726/0.1106, allocations: 488.9 kB / 470.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006061/0.1113, allocations: 0.537 MB / 470.6 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007482/0.112, allocations: 0.5079 MB / 471.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003135/0.1123, allocations: 243.1 kB / 471.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003181/0.1127, allocations: 302.8 kB / 471.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.916e-05/0.1128, allocations: 52 kB / 471.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005033/0.1133, allocations: 227.8 kB / 471.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.182e-05/0.1134, allocations: 123.6 kB / 472 MB, free: 4.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002227/0.1136, allocations: 270.6 kB / 472.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009211/0.1145, allocations: 0.7905 MB / 473.1 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1146, allocations: 4 kB / 473.1 MB, free: 3.871 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1146, allocations: 4 kB / 473.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.1146, allocations: 0 / 473.1 MB, free: 3.867 MB / 302.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.002305/0.1169, allocations: 0.9384 MB / 474.1 MB, free: 2.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.117, allocations: 12.03 kB / 474.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.1171, allocations: 115.9 kB / 474.2 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002652/0.1198, allocations: 399.9 kB / 474.6 MB, free: 2.355 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/0.1203, allocations: 358.2 kB / 474.9 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.298e-05/0.1204, allocations: 49.44 kB / 475 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.1205, allocations: 67.98 kB / 475 MB, free: 1.852 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.1215, allocations: 0.6276 MB / 475.7 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.1215, allocations: 3.938 kB / 475.7 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-05/0.1216, allocations: 28 kB / 475.7 MB, free: 1.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.1216, allocations: 12 kB / 475.7 MB, free: 1.168 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001164/0.1228, allocations: 0.5829 MB / 476.3 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003214/0.126, allocations: 2.189 MB / 478.5 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/0.1276, allocations: 1.185 MB / 479.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000374/0.128, allocations: 192.8 kB / 479.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.834e-05/0.1281, allocations: 89.09 kB / 479.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/0.1282, allocations: 38.56 kB / 480 MB, free: 12.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=44): time 2.434e-06/0.1282, allocations: 0 / 480 MB, free: 12.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=44): time 0.001776/0.13, allocations: 0.6901 MB / 480.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.13, allocations: 55.41 kB / 480.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003014/0.1303, allocations: 266.6 kB / 481 MB, free: 11.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.1304, allocations: 33.7 kB / 481 MB, free: 11.46 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.1305, allocations: 256.5 kB / 481.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.1307, allocations: 145.9 kB / 481.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.1308, allocations: 82.16 kB / 481.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002181/0.131, allocations: 350.8 kB / 481.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.1314, allocations: 159 kB / 482 MB, free: 10.46 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004213/0.1318, allocations: 261.8 kB / 482.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007324/0.1326, allocations: 437.6 kB / 482.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1326, allocations: 0 / 482.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009805/0.1336, allocations: 0.5256 MB / 483.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.1336, allocations: 4 kB / 483.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.1336, allocations: 4 kB / 483.2 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000263/0.1339, allocations: 60.98 kB / 483.3 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004133/0.1343, allocations: 99.83 kB / 483.4 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.1358, allocations: 1.759 MB / 485.1 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003067/0.1361, allocations: 59.36 kB / 485.2 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.292e-05/0.1362, allocations: 20.12 kB / 485.2 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004743/0.1367, allocations: 277.2 kB / 485.5 MB, free: 6.742 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003941/0.1371, allocations: 249.5 kB / 485.7 MB, free: 6.461 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007568/0.1378, allocations: 427.6 kB / 486.1 MB, free: 6 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.844e-06/0.1378, allocations: 0 / 486.1 MB, free: 6 MB / 318.1 MB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.0008994/0.1388, allocations: 0.5089 MB / 486.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.1388, allocations: 8.406 kB / 486.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.1388, allocations: 4 kB / 486.6 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/0.139, allocations: 56.83 kB / 486.7 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.1393, allocations: 99.83 kB / 486.8 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/0.1408, allocations: 1.763 MB / 488.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.1411, allocations: 43.67 kB / 488.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.1412, allocations: 16 kB / 488.6 MB, free: 3.352 MB / 318.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.0001789/0.1414, allocations: 216.1 kB / 488.8 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.1414, allocations: 35.56 kB / 488.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.1425, allocations: 0.5084 MB / 489.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.1426, allocations: 4 kB / 489.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1426, allocations: 4.062 kB / 489.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.1426, allocations: 4 kB / 489.4 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.1442, allocations: 1.088 MB / 490.5 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1442, allocations: 0 / 490.5 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003604/0.1446, allocations: 75.89 kB / 490.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001658/0.1447, allocations: 48.83 kB / 490.6 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.755e-05/0.1448, allocations: 15.92 kB / 490.6 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.1462, allocations: 1.767 MB / 492.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1462, allocations: 0 / 492.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.1475, allocations: 0.7492 MB / 493.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.1477, allocations: 144.7 kB / 493.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.41e-05/0.1477, allocations: 8 kB / 493.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.148, allocations: 19.98 kB / 493.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.92e-05/0.1481, allocations: 32.39 kB / 493.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.1481, allocations: 8 kB / 493.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.1483, allocations: 206 kB / 493.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1483, allocations: 0 / 493.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008868/0.1492, allocations: 243.1 kB / 493.8 MB, free: 13.94 MB / 334.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.001813/0.151, allocations: 1.322 MB / 495.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001832/0.1529, allocations: 0.9102 MB / 496 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1529, allocations: 0 / 496 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005475/0.1534, allocations: 333.1 kB / 496.3 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004673/0.1539, allocations: 52.98 kB / 496.4 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005328/0.1593, allocations: 3.808 MB / 0.4885 GB, free: 7.281 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.1597, allocations: 0.8288 MB / 0.4893 GB, free: 6.426 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003414/0.16, allocations: 67.25 kB / 0.4893 GB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.1603, allocations: 171.4 kB / 0.4895 GB, free: 6.195 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1603, allocations: 0 / 0.4895 GB, free: 6.195 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.1925, allocations: 8.567 MB / 0.4979 GB, free: 13.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.518/9.711, allocations: 2.953 kB / 0.4979 GB, free: 13.74 MB / 350.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)