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.001267/0.001267, allocations: 108 kB / 15.6 MB, free: 132 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.446/1.446, allocations: 222.9 MB / 239.2 MB, free: 4.59 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.001428/0.001428, allocations: 196.4 kB / 289.6 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03716/0.03716, allocations: 8.799 MB / 348.5 MB, free: 4.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 78.56 kB / 411.2 MB, free: 42.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08412/0.08576, allocations: 51.56 MB / 462.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.RLSeriesFrequencySweep): time 0.005895/0.0917, allocations: 3.974 MB / 466.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00322/0.09496, allocations: 1.577 MB / 468.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00054/0.09553, allocations: 11.94 kB / 468.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002091/0.09763, allocations: 0.7605 MB / 469.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001474/0.09912, allocations: 0.5316 MB / 469.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.1003, allocations: 492.2 kB / 470.1 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008237/0.1011, allocations: 0.5448 MB / 470.6 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009657/0.1021, allocations: 0.4962 MB / 471.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004227/0.1025, allocations: 247 kB / 471.4 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004207/0.103, allocations: 302.8 kB / 471.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.1031, allocations: 56 kB / 471.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004489/0.1035, allocations: 219.8 kB / 471.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.1036, allocations: 127.6 kB / 472 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002469/0.1039, allocations: 270.6 kB / 472.3 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.1049, allocations: 0.7944 MB / 473.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1049, allocations: 0 / 473.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1049, allocations: 0 / 473.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.675e-05/0.105, allocations: 0 / 473.1 MB, free: 3.922 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.002261/0.1072, allocations: 0.9402 MB / 474 MB, free: 2.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1073, allocations: 8.031 kB / 474.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001595/0.1075, allocations: 115.8 kB / 474.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002853/0.1103, allocations: 407.9 kB / 474.6 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004874/0.1108, allocations: 354.3 kB / 474.9 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.227e-05/0.1109, allocations: 49.44 kB / 475 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.78e-05/0.111, allocations: 60 kB / 475 MB, free: 1.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.112, allocations: 0.6393 MB / 475.7 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.1121, allocations: 0 / 475.7 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.567e-05/0.1121, allocations: 20 kB / 475.7 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.1122, allocations: 23.98 kB / 475.7 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.1133, allocations: 0.579 MB / 476.3 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003133/0.1164, allocations: 2.181 MB / 478.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.118, allocations: 1.189 MB / 479.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003788/0.1184, allocations: 195.8 kB / 479.8 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.91e-05/0.1185, allocations: 89.09 kB / 479.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.1185, allocations: 34.56 kB / 480 MB, free: 12.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=44): time 2.204e-06/0.1185, allocations: 4 kB / 480 MB, free: 12.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=44): time 0.001715/0.1203, allocations: 0.6862 MB / 480.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.1203, allocations: 55.41 kB / 480.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.1206, allocations: 270.6 kB / 481 MB, free: 11.56 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.1207, allocations: 37.64 kB / 481 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.1208, allocations: 260.1 kB / 481.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.1209, allocations: 141.9 kB / 481.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.1211, allocations: 94.14 kB / 481.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1212, allocations: 334.8 kB / 481.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003412/0.1215, allocations: 159 kB / 482 MB, free: 10.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004065/0.1219, allocations: 261.9 kB / 482.2 MB, free: 10.22 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007404/0.1227, allocations: 433.7 kB / 482.7 MB, free: 9.758 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.1227, allocations: 4 kB / 482.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001083/0.1238, allocations: 0.5176 MB / 483.2 MB, free: 9.227 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1238, allocations: 8 kB / 483.2 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.1239, allocations: 4.406 kB / 483.2 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002735/0.1241, allocations: 64.7 kB / 483.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.1246, allocations: 99.88 kB / 483.3 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.1262, allocations: 1.767 MB / 485.1 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003136/0.1265, allocations: 59.48 kB / 485.2 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.745e-05/0.1265, allocations: 27.97 kB / 485.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004174/0.127, allocations: 265.2 kB / 485.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003513/0.1273, allocations: 249.6 kB / 485.7 MB, free: 6.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006637/0.128, allocations: 427.6 kB / 486.1 MB, free: 6.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.607e-06/0.128, allocations: 0 / 486.1 MB, free: 6.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.0009611/0.129, allocations: 0.513 MB / 486.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.129, allocations: 10.19 kB / 486.6 MB, free: 5.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.129, allocations: 4 kB / 486.6 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001711/0.1292, allocations: 48.83 kB / 486.7 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003689/0.1296, allocations: 95.89 kB / 486.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.1311, allocations: 1.775 MB / 488.6 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.1314, allocations: 39.67 kB / 488.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.101e-05/0.1314, allocations: 20 kB / 488.6 MB, free: 3.398 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.0001607/0.1316, allocations: 208.2 kB / 488.8 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.084e-05/0.1317, allocations: 35.56 kB / 488.9 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.1328, allocations: 0.5045 MB / 489.4 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1328, allocations: 7.938 kB / 489.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1328, allocations: 7.938 kB / 489.4 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1328, allocations: 3.984 kB / 489.4 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.1345, allocations: 1.076 MB / 490.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1345, allocations: 0 / 490.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003539/0.1348, allocations: 83.83 kB / 490.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001777/0.135, allocations: 52.83 kB / 490.6 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.1351, allocations: 12 kB / 490.6 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001493/0.1366, allocations: 1.767 MB / 492.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1366, allocations: 0 / 492.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.1379, allocations: 0.7529 MB / 493.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001644/0.1381, allocations: 144.7 kB / 493.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.1381, allocations: 12 kB / 493.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.1384, allocations: 20.05 kB / 493.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.806e-05/0.1385, allocations: 32.39 kB / 493.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.1385, allocations: 15.98 kB / 493.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001914/0.1387, allocations: 190 kB / 493.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1387, allocations: 0 / 493.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000922/0.1397, allocations: 243.1 kB / 493.8 MB, free: 14 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.00206/0.1417, allocations: 1.323 MB / 495.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00185/0.1436, allocations: 0.9107 MB / 496 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1436, allocations: 0 / 496 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006414/0.1443, allocations: 341.2 kB / 496.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000471/0.1448, allocations: 48.61 kB / 496.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005617/0.1504, allocations: 3.806 MB / 0.4885 GB, free: 7.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.1508, allocations: 0.821 MB / 0.4893 GB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003693/0.1512, allocations: 71.25 kB / 0.4893 GB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002232/0.1515, allocations: 167.4 kB / 0.4895 GB, free: 6.254 MB / 334.1 MB Notification: Performance of SimCode: time 1.001e-06/0.1515, allocations: 0 / 0.4895 GB, free: 6.254 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03617/0.1876, allocations: 8.571 MB / 0.4979 GB, free: 13.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.39/9.578, allocations: 12.5 kB / 0.4979 GB, free: 13.79 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_RLSeriesFrequencySweep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_RLSeriesFrequencySweep.fmu > HanserModelica_HanserModelica.Electrical.RLSeriesFrequencySweep.pipe 2>&1)