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.0008262/0.0008262, allocations: 96.78 kB / 15.36 MB, free: 0.7344 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.311/1.311, allocations: 223.3 MB / 239.4 MB, free: 5.508 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.001349/0.001349, allocations: 184.5 kB / 290.6 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03254/0.03254, allocations: 8.811 MB / 350.5 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004076/0.0004076, allocations: 13.94 kB / 413.9 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09328/0.0937, allocations: 52.55 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Tables): time 0.002676/0.09643, allocations: 1.852 MB / 468.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.09782, allocations: 0.9277 MB / 469.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.09794, allocations: 4 kB / 469.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003821/0.09833, allocations: 99.66 kB / 469.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002615/0.0986, allocations: 83.64 kB / 469.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003521/0.09896, allocations: 122.1 kB / 469.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002692/0.09924, allocations: 203.2 kB / 469.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.0994, allocations: 45.88 kB / 469.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.09953, allocations: 75.7 kB / 469.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.09969, allocations: 103.5 kB / 470 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.09972, allocations: 8 kB / 470 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.41e-05/0.09982, allocations: 39.98 kB / 470 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.219e-05/0.0999, allocations: 43.83 kB / 470.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.528e-05/0.09999, allocations: 101.2 kB / 470.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.1002, allocations: 227.2 kB / 470.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.1002, allocations: 0 / 470.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1003, allocations: 0 / 470.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.1003, allocations: 0 / 470.4 MB, free: 9.109 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.0006363/0.1009, allocations: 478.9 kB / 470.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.101, allocations: 12.03 kB / 470.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.524e-05/0.101, allocations: 46.72 kB / 470.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.499e-05/0.1011, allocations: 24.66 kB / 470.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002564/0.1013, allocations: 245 kB / 471.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.872e-05/0.1014, allocations: 12.61 kB / 471.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.1014, allocations: 15.94 kB / 471.2 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002337/0.1016, allocations: 119.5 kB / 471.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1016, allocations: 0 / 471.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.1017, allocations: 4 kB / 471.3 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.1017, allocations: 3.938 kB / 471.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.1018, allocations: 76.61 kB / 471.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007286/0.1026, allocations: 0.5536 MB / 472 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003401/0.1029, allocations: 110.7 kB / 472.1 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.912e-05/0.103, allocations: 36.84 kB / 472.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.1031, allocations: 0 / 472.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002092/0.1033, allocations: 100.9 kB / 472.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.173e-06/0.1033, allocations: 4 kB / 472.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003481/0.1036, allocations: 149.4 kB / 472.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.1037, allocations: 77.11 kB / 472.4 MB, free: 6.852 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.1039, allocations: 268.1 kB / 472.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.104, allocations: 29.7 kB / 472.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.961e-05/0.1041, allocations: 139.7 kB / 472.9 MB, free: 6.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/0.1041, allocations: 35.55 kB / 472.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.967e-05/0.1041, allocations: 17.72 kB / 472.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1043, allocations: 338.8 kB / 473.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.918e-05/0.1043, allocations: 27.98 kB / 473.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.708e-05/0.1044, allocations: 62.81 kB / 473.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.1046, allocations: 95.39 kB / 473.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1046, allocations: 0 / 473.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002305/0.1048, allocations: 141.2 kB / 473.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.1048, allocations: 4 kB / 473.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.1049, allocations: 0 / 473.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.1049, allocations: 4 kB / 473.6 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.105, allocations: 27.92 kB / 473.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.718e-06/0.105, allocations: 0 / 473.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.93e-05/0.1051, allocations: 23.94 kB / 473.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.1051, allocations: 4 kB / 473.6 MB, free: 5.59 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.0001202/0.1052, allocations: 142.4 kB / 473.8 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.755e-05/0.1053, allocations: 15.81 kB / 473.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.324e-05/0.1053, allocations: 29.31 kB / 473.8 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1053, allocations: 0 / 473.8 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.1053, allocations: 4 kB / 473.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1053, allocations: 0 / 473.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001983/0.1055, allocations: 245.5 kB / 474 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1056, allocations: 0 / 474 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.848e-05/0.1056, allocations: 15.98 kB / 474.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1057, allocations: 384 / 474.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.1057, allocations: 4 kB / 474.1 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.1057, allocations: 4 kB / 474.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1057, allocations: 0 / 474.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003346/0.106, allocations: 188.6 kB / 474.3 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.871e-05/0.1061, allocations: 97 kB / 474.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.1061, allocations: 8 kB / 474.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.652e-05/0.1062, allocations: 7.984 kB / 474.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.598e-05/0.1063, allocations: 7.938 kB / 474.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.1063, allocations: 4 kB / 474.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001759/0.1065, allocations: 197.6 kB / 474.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1065, allocations: 0 / 474.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000249/0.1067, allocations: 39.94 kB / 474.6 MB, free: 4.504 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.001402/0.1081, allocations: 1.024 MB / 475.6 MB, free: 3.613 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002046/0.1083, allocations: 75.91 kB / 475.7 MB, free: 3.539 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1084, allocations: 4 kB / 475.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.809e-05/0.1084, allocations: 40.11 kB / 475.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.1088, allocations: 33.53 kB / 475.8 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002228/0.111, allocations: 2.147 MB / 477.9 MB, free: 1.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.1113, allocations: 0.7322 MB / 478.7 MB, free: 476 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.082e-05/0.1114, allocations: 21.53 kB / 478.7 MB, free: 456 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.843e-05/0.1115, allocations: 55.41 kB / 478.7 MB, free: 400 kB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1115, allocations: 4 kB / 478.7 MB, free: 396 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0178/0.1293, allocations: 3.923 MB / 482.7 MB, free: 12.58 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002729/0.1296, allocations: 213.8 kB / 482.9 MB, free: 12.33 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.739/1.869, allocations: 0 / 482.9 MB, free: 12.33 MB / 318.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)