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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009739/0.000974, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03998/0.03998, allocations: 8.708 MB / 21.97 MB, free: 3.707 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 221.4 MB / 246 MB, free: 3.605 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008967/0.0008969, allocations: 92.53 kB / 299.1 MB, free: 2.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.277e-05/3.311e-05, allocations: 4 kB / 359.6 MB, free: 6.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2703, allocations: 52.54 MB / 412.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.3874, allocations: 86.12 MB / 498.3 MB, free: 304 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.3877, allocations: 67.97 kB / 498.3 MB, free: 236 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3138/0.7015, allocations: 16.45 MB / 0.5027 GB, free: 85.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.7015, allocations: 0 / 0.5027 GB, free: 85.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.941e-05/0.7016, allocations: 9.906 kB / 0.5027 GB, free: 85.7 MB / 378.7 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.002243/0.7038, allocations: 0.7876 MB / 0.5035 GB, free: 85.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.039e-05/0.7039, allocations: 10.12 kB / 0.5035 GB, free: 85.33 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002715/0.7042, allocations: 110.7 kB / 0.5036 GB, free: 85.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002157/0.7063, allocations: 302.2 kB / 0.5039 GB, free: 85.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005936/0.7069, allocations: 338.2 kB / 0.5042 GB, free: 85.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.364e-05/0.707, allocations: 50.48 kB / 0.5043 GB, free: 85.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.7072, allocations: 58.09 kB / 0.5043 GB, free: 85.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.7084, allocations: 0.6206 MB / 0.5049 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.7085, allocations: 1.125 kB / 0.5049 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.758e-05/0.7085, allocations: 28.7 kB / 0.505 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.7086, allocations: 15.03 kB / 0.505 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.7097, allocations: 0.5527 MB / 0.5055 GB, free: 84.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003796/0.7135, allocations: 2.269 MB / 0.5077 GB, free: 84.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.7149, allocations: 1.197 MB / 0.5089 GB, free: 83.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.7152, allocations: 199.5 kB / 0.5091 GB, free: 83.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.7153, allocations: 89.64 kB / 0.5092 GB, free: 83.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.7154, allocations: 40.62 kB / 0.5092 GB, free: 83.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 3.126e-06/0.7154, allocations: 0 / 0.5092 GB, free: 83.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.0009382/0.7163, allocations: 434 kB / 0.5096 GB, free: 83.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.7164, allocations: 89.52 kB / 0.5097 GB, free: 82.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.7167, allocations: 237 kB / 0.5099 GB, free: 82.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.624e-05/0.7167, allocations: 31.64 kB / 0.51 GB, free: 82.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.7169, allocations: 249.5 kB / 0.5102 GB, free: 82.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.717, allocations: 161.2 kB / 0.5104 GB, free: 82.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.341e-05/0.717, allocations: 9.219 kB / 0.5104 GB, free: 82.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.247e-05/0.7171, allocations: 338.8 kB / 0.5107 GB, free: 82.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002988/0.7174, allocations: 148.5 kB / 0.5108 GB, free: 82.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000364/0.7178, allocations: 266.9 kB / 0.5111 GB, free: 82.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.7182, allocations: 178.8 kB / 0.5113 GB, free: 82.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.7182, allocations: 1.547 kB / 0.5113 GB, free: 82.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001129/0.7193, allocations: 0.5229 MB / 0.5118 GB, free: 82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002831/0.7196, allocations: 1.314 MB / 0.5131 GB, free: 80.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.7197, allocations: 3.219 kB / 0.5131 GB, free: 80.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002715/0.7199, allocations: 53.59 kB / 0.5131 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004777/0.7204, allocations: 113 kB / 0.5132 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.7217, allocations: 1.589 MB / 0.5148 GB, free: 79.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003473/0.7221, allocations: 66.53 kB / 0.5148 GB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-05/0.7221, allocations: 18.06 kB / 0.5149 GB, free: 79.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.927e-06/0.7221, allocations: 3.562 kB / 0.5149 GB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007198/0.7229, allocations: 478.8 kB / 0.5153 GB, free: 79.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.7229, allocations: 3.875 kB / 0.5153 GB, free: 79.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001315/0.723, allocations: 54.45 kB / 0.5154 GB, free: 79.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000351/0.7234, allocations: 104.8 kB / 0.5155 GB, free: 79.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008754/0.7243, allocations: 1.504 MB / 0.5169 GB, free: 77.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.7246, allocations: 54.58 kB / 0.517 GB, free: 77.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.7246, allocations: 19.47 kB / 0.517 GB, free: 77.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.7247, allocations: 143.8 kB / 0.5171 GB, free: 77.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.7248, allocations: 31.16 kB / 0.5172 GB, free: 77.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008536/0.7257, allocations: 0.5107 MB / 0.5177 GB, free: 77.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.7257, allocations: 11.78 kB / 0.5177 GB, free: 77.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.7257, allocations: 3.844 kB / 0.5177 GB, free: 77.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.7257, allocations: 3.609 kB / 0.5177 GB, free: 77.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/0.727, allocations: 1.109 MB / 0.5188 GB, free: 76.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.727, allocations: 0 / 0.5188 GB, free: 76.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.7274, allocations: 83.62 kB / 0.5189 GB, free: 76.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000158/0.7276, allocations: 57.38 kB / 0.5189 GB, free: 76.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.7276, allocations: 7.281 kB / 0.5189 GB, free: 76.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.7286, allocations: 1.58 MB / 0.5205 GB, free: 75.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.7287, allocations: 4.062 kB / 0.5205 GB, free: 75.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009694/0.7296, allocations: 0.7574 MB / 0.5212 GB, free: 74.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.7298, allocations: 160 kB / 0.5214 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.347e-05/0.7298, allocations: 7.344 kB / 0.5214 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000271/0.7301, allocations: 34.23 kB / 0.5214 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.057e-05/0.7302, allocations: 30.72 kB / 0.5214 GB, free: 74.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.7302, allocations: 15.75 kB / 0.5214 GB, free: 74.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001734/0.7304, allocations: 183.2 kB / 0.5216 GB, free: 74.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.7304, allocations: 0 / 0.5216 GB, free: 74.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009682/0.7314, allocations: 261.4 kB / 0.5219 GB, free: 74.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001344/0.7327, allocations: 1.358 MB / 0.5232 GB, free: 73.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.7341, allocations: 0.9044 MB / 0.5241 GB, free: 72.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.7341, allocations: 3.375 kB / 0.5241 GB, free: 72.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003672/0.7345, allocations: 337.2 kB / 0.5244 GB, free: 72.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.7348, allocations: 38.64 kB / 0.5244 GB, free: 72.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.7362, allocations: 0.725 MB / 0.5251 GB, free: 72.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002984/0.7365, allocations: 0.845 MB / 0.526 GB, free: 71.62 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003777/0.7369, allocations: 73.64 kB / 0.526 GB, free: 71.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.7371, allocations: 155.2 kB / 0.5262 GB, free: 71.49 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.7371, allocations: 0 / 0.5262 GB, free: 71.49 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02151/0.7586, allocations: 9.098 MB / 0.5351 GB, free: 68.38 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/0.7588, allocations: 169.4 kB / 0.5352 GB, free: 68.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.347/3.106, allocations: 3.938 kB / 0.5352 GB, free: 68.15 MB / 378.7 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/linux/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)