Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Tables.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.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",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.005285/0.005284, allocations: 102 kB / 15.73 MB, free: 6.441 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.386/1.386, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.00158/0.00158, allocations: 192.4 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03608/0.03608, allocations: 8.791 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002388/0.002388, allocations: 75.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09606/0.09846, allocations: 51.56 MB / 0.5029 GB, free: 9.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Tables): time 0.003664/0.1022, allocations: 2.155 MB / 0.505 GB, free: 7.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.1038, allocations: 0.9547 MB / 0.5059 GB, free: 6.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.1039, allocations: 0 / 0.5059 GB, free: 6.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003626/0.1043, allocations: 103.5 kB / 0.506 GB, free: 6.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003253/0.1047, allocations: 107.5 kB / 0.5061 GB, free: 6.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003813/0.1051, allocations: 127.5 kB / 0.5063 GB, free: 6.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003196/0.1054, allocations: 223.2 kB / 0.5065 GB, free: 6.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.1056, allocations: 49.66 kB / 0.5065 GB, free: 6.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.1057, allocations: 95.61 kB / 0.5066 GB, free: 6.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.1059, allocations: 103.6 kB / 0.5067 GB, free: 6.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.219e-05/0.1059, allocations: 12 kB / 0.5067 GB, free: 6.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001257/0.1061, allocations: 55.98 kB / 0.5068 GB, free: 6.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.204e-05/0.1062, allocations: 47.83 kB / 0.5068 GB, free: 5.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.1063, allocations: 87.42 kB / 0.5069 GB, free: 5.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003401/0.1066, allocations: 227 kB / 0.5071 GB, free: 5.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1066, allocations: 0 / 0.5071 GB, free: 5.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1066, allocations: 0 / 0.5071 GB, free: 5.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1066, allocations: 0 / 0.5071 GB, free: 5.648 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007603/0.1074, allocations: 0.514 MB / 0.5076 GB, free: 5.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1075, allocations: 15.97 kB / 0.5076 GB, free: 5.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.287e-05/0.1075, allocations: 42.75 kB / 0.5077 GB, free: 5.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.899e-05/0.1076, allocations: 24.8 kB / 0.5077 GB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.1079, allocations: 245.1 kB / 0.5079 GB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.108, allocations: 12.55 kB / 0.508 GB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.108, allocations: 15.92 kB / 0.508 GB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.1083, allocations: 119.5 kB / 0.5081 GB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.1083, allocations: 0 / 0.5081 GB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.1083, allocations: 8 kB / 0.5081 GB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.1083, allocations: 4 kB / 0.5081 GB, free: 4.551 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000168/0.1085, allocations: 72.59 kB / 0.5082 GB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008181/0.1093, allocations: 0.542 MB / 0.5087 GB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003735/0.1097, allocations: 110.7 kB / 0.5088 GB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.913e-05/0.1098, allocations: 40.83 kB / 0.5088 GB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.1098, allocations: 3.984 kB / 0.5088 GB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.11, allocations: 97.05 kB / 0.5089 GB, free: 3.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.11, allocations: 0 / 0.5089 GB, free: 3.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003631/0.1104, allocations: 145.5 kB / 0.5091 GB, free: 3.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/0.1105, allocations: 85.05 kB / 0.5092 GB, free: 3.348 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.1108, allocations: 264.2 kB / 0.5094 GB, free: 3.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.1108, allocations: 25.7 kB / 0.5094 GB, free: 3.047 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.962e-05/0.1109, allocations: 139.9 kB / 0.5096 GB, free: 2.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.287e-05/0.1109, allocations: 35.73 kB / 0.5096 GB, free: 2.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.575e-05/0.111, allocations: 33.7 kB / 0.5096 GB, free: 2.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1111, allocations: 334.8 kB / 0.51 GB, free: 2.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.358e-05/0.1112, allocations: 28.36 kB / 0.51 GB, free: 2.469 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.1113, allocations: 69.89 kB / 0.51 GB, free: 2.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001645/0.1115, allocations: 91.39 kB / 0.5101 GB, free: 2.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1115, allocations: 0 / 0.5101 GB, free: 2.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002556/0.1118, allocations: 145.3 kB / 0.5103 GB, free: 2.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.1118, allocations: 4 kB / 0.5103 GB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1118, allocations: 4 kB / 0.5103 GB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.1118, allocations: 0 / 0.5103 GB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.1119, allocations: 31.92 kB / 0.5103 GB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.1119, allocations: 4 kB / 0.5103 GB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.113e-05/0.112, allocations: 12.05 kB / 0.5103 GB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.1121, allocations: 4 kB / 0.5103 GB, free: 2.078 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.table.nextTimeEvent,$whenCondition1,table.nextTimeEventScaled,$PRE.table.nextTimeEventScaled,table.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001316/0.1122, allocations: 149.6 kB / 0.5105 GB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.896e-05/0.1122, allocations: 15.91 kB / 0.5105 GB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.561e-05/0.1123, allocations: 25.39 kB / 0.5105 GB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1123, allocations: 0 / 0.5105 GB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1123, allocations: 0 / 0.5105 GB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.1123, allocations: 0 / 0.5105 GB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002283/0.1126, allocations: 253.4 kB / 0.5108 GB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.1126, allocations: 8 kB / 0.5108 GB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.915e-05/0.1127, allocations: 12 kB / 0.5108 GB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1127, allocations: 0 / 0.5108 GB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.1127, allocations: 3.984 kB / 0.5108 GB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1127, allocations: 0 / 0.5108 GB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1127, allocations: 4 kB / 0.5108 GB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003483/0.113, allocations: 184.8 kB / 0.511 GB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.1131, allocations: 93.05 kB / 0.511 GB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.934e-05/0.1132, allocations: 8.047 kB / 0.511 GB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.254e-05/0.1132, allocations: 4 kB / 0.5111 GB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.79e-05/0.1133, allocations: 7.984 kB / 0.5111 GB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.1133, allocations: 8 kB / 0.5111 GB, free: 1.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001788/0.1135, allocations: 193.6 kB / 0.5113 GB, free: 1.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1135, allocations: 0 / 0.5113 GB, free: 1.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002472/0.1137, allocations: 43.88 kB / 0.5113 GB, free: 0.9805 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * Number of discrete variables: 3 ($whenCondition1,table.nextTimeEvent,table.nextTimeEventScaled) * Number of discrete states: 2 (table.nextTimeEventScaled,table.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001937/0.1157, allocations: 1.018 MB / 0.5123 GB, free: 96 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002341/0.1159, allocations: 79.91 kB / 0.5124 GB, free: 16 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.1159, allocations: 0 / 0.5124 GB, free: 16 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.1161, allocations: 47.8 kB / 0.5124 GB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.1164, allocations: 47.59 kB / 0.5125 GB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.1189, allocations: 2.064 MB / 0.5145 GB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.1193, allocations: 0.728 MB / 0.5152 GB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.898e-05/0.1193, allocations: 25.52 kB / 0.5152 GB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.307e-05/0.1194, allocations: 55.42 kB / 0.5153 GB, free: 12.93 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1195, allocations: 0 / 0.5153 GB, free: 12.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02891/0.1484, allocations: 4.398 MB / 0.5196 GB, free: 8.625 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.763/7.912, allocations: 13.95 kB / 0.5196 GB, free: 8.613 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Electrical.Tables.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Tables.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Tables.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Tables.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_Tables_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_Tables.fmu > HanserModelica_HanserModelica.Electrical.Tables.pipe 2>&1)