Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TablesFromFile.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.TablesFromFile,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TablesFromFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.TablesFromFile,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TablesFromFile",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.001486/0.001486, allocations: 108 kB / 15.61 MB, free: 152 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.417/1.417, allocations: 222.9 MB / 239.3 MB, free: 4.645 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.001418/0.001418, allocations: 184.5 kB / 289.6 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03463/0.03463, allocations: 8.793 MB / 348.5 MB, free: 4.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 77.09 kB / 411.2 MB, free: 42.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.096/0.09795, allocations: 51.57 MB / 462.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TablesFromFile): time 0.005118/0.1031, allocations: 2.145 MB / 464.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002971/0.1061, allocations: 1.569 MB / 466.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002824/0.1065, allocations: 0 / 466.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005372/0.107, allocations: 107.5 kB / 466.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000498/0.1076, allocations: 111.4 kB / 466.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005102/0.1081, allocations: 130.8 kB / 466.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000391/0.1085, allocations: 223.2 kB / 467 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.1087, allocations: 45.67 kB / 467.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001672/0.1089, allocations: 95.62 kB / 467.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004138/0.1093, allocations: 111.6 kB / 467.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.504e-05/0.1093, allocations: 12 kB / 467.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002125/0.1096, allocations: 79.84 kB / 467.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.345e-05/0.1097, allocations: 43.91 kB / 467.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.1099, allocations: 91.45 kB / 467.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003919/0.1103, allocations: 239.5 kB / 467.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.1103, allocations: 4 kB / 467.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1103, allocations: 0 / 467.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.1103, allocations: 0 / 467.7 MB, free: 9.32 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008985/0.1112, allocations: 0.5142 MB / 468.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1113, allocations: 12.03 kB / 468.3 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.852e-05/0.1113, allocations: 50.73 kB / 468.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.868e-05/0.1114, allocations: 24.66 kB / 468.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003249/0.1118, allocations: 245 kB / 468.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.1118, allocations: 8.609 kB / 468.6 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.1118, allocations: 15.94 kB / 468.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.1121, allocations: 141.4 kB / 468.7 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1122, allocations: 0 / 468.7 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.1122, allocations: 4 kB / 468.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.1122, allocations: 8 kB / 468.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.1124, allocations: 72.67 kB / 468.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009003/0.1133, allocations: 0.5533 MB / 469.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003959/0.1137, allocations: 102.7 kB / 469.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.8e-05/0.1138, allocations: 40.84 kB / 469.5 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.1138, allocations: 3.938 kB / 469.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002609/0.1141, allocations: 101 kB / 469.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.1141, allocations: 0 / 469.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003739/0.1145, allocations: 145.3 kB / 469.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.436e-05/0.1146, allocations: 106.8 kB / 469.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.1148, allocations: 276.9 kB / 470.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.1149, allocations: 25.7 kB / 470.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.115, allocations: 147.7 kB / 470.3 MB, free: 6.504 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.115, allocations: 35.55 kB / 470.3 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.288e-05/0.1151, allocations: 37.7 kB / 470.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1152, allocations: 330.8 kB / 470.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.645e-05/0.1153, allocations: 31.92 kB / 470.7 MB, free: 6.062 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.619e-05/0.1154, allocations: 71.23 kB / 470.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.1156, allocations: 91.39 kB / 470.9 MB, free: 5.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1156, allocations: 0 / 470.9 MB, free: 5.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002532/0.1159, allocations: 141.3 kB / 471 MB, free: 5.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.1159, allocations: 11.94 kB / 471 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1159, allocations: 0 / 471 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.1159, allocations: 96 / 471 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.116, allocations: 35.92 kB / 471.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.116, allocations: 0 / 471.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.1161, allocations: 15.84 kB / 471.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.1162, allocations: 8 kB / 471.1 MB, free: 5.66 MB / 302.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.000128/0.1163, allocations: 142.4 kB / 471.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.392e-05/0.1163, allocations: 19.8 kB / 471.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.136e-05/0.1164, allocations: 25.7 kB / 471.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1164, allocations: 0 / 471.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1164, allocations: 4 kB / 471.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1164, allocations: 384 / 471.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/0.1166, allocations: 241.5 kB / 471.5 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1167, allocations: 7.922 kB / 471.5 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.519e-05/0.1167, allocations: 16 kB / 471.5 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1168, allocations: 3.938 kB / 471.5 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.1168, allocations: 4 kB / 471.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1168, allocations: 0 / 471.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1168, allocations: 0 / 471.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003455/0.1171, allocations: 196.7 kB / 471.7 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.143e-05/0.1172, allocations: 88.95 kB / 471.8 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.172e-05/0.1172, allocations: 0 / 471.8 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.5e-05/0.1173, allocations: 11.98 kB / 471.8 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.1174, allocations: 4 kB / 471.8 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.1174, allocations: 4 kB / 471.9 MB, free: 4.812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002403/0.1176, allocations: 204.5 kB / 472.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1177, allocations: 4.062 kB / 472.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000274/0.1179, allocations: 47.92 kB / 472.1 MB, free: 4.562 MB / 302.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.001529/0.1195, allocations: 1.068 MB / 473.2 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002491/0.1197, allocations: 91.77 kB / 473.3 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1198, allocations: 0 / 473.3 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.807e-05/0.1199, allocations: 39.92 kB / 473.3 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.1202, allocations: 29.36 kB / 473.3 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002787/0.123, allocations: 2.075 MB / 475.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.1233, allocations: 0.7358 MB / 476.1 MB, free: 0.543 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.429e-05/0.1234, allocations: 21.53 kB / 476.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.983e-05/0.1235, allocations: 59.41 kB / 476.2 MB, free: 476 kB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1235, allocations: 0 / 476.2 MB, free: 476 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.1498, allocations: 4.691 MB / 480.9 MB, free: 11.85 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.786/7.936, allocations: 13.89 kB / 480.9 MB, free: 11.84 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TablesFromFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_TablesFromFile_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_TablesFromFile.fmu > HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe 2>&1)