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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001517/0.001518, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06301/0.06301, allocations: 8.719 MB / 16.79 MB, free: 3.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 221.5 MB / 240.9 MB, free: 13.19 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.0009372/0.0009372, allocations: 97.72 kB / 293.9 MB, free: 7.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.233e-05/2.228e-05, allocations: 4 kB / 352.7 MB, free: 1.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 52.56 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3531/0.469, allocations: 81.75 MB / 487 MB, free: 5.633 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.4693, allocations: 67.78 kB / 487.1 MB, free: 5.602 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01782/0.4871, allocations: 7.351 MB / 494.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4872, allocations: 4 kB / 494.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.4872, allocations: 3.984 kB / 494.5 MB, free: 14.85 MB / 362.7 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.0006405/0.4878, allocations: 481.6 kB / 494.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.4879, allocations: 11.98 kB / 494.9 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.718e-05/0.488, allocations: 24.78 kB / 495 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000357/0.4883, allocations: 251.8 kB / 495.2 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.4884, allocations: 4 kB / 495.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.689e-05/0.4884, allocations: 11.98 kB / 495.2 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001577/0.4886, allocations: 60.42 kB / 495.3 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/0.4888, allocations: 129.2 kB / 495.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.4888, allocations: 1.219 kB / 495.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.4888, allocations: 3.938 kB / 495.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.4888, allocations: 4 kB / 495.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007652/0.4896, allocations: 0.5224 MB / 495.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.4899, allocations: 99.08 kB / 496 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.629e-05/0.49, allocations: 38.34 kB / 496.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.49, allocations: 4 kB / 496.1 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001758/0.4902, allocations: 94.09 kB / 496.2 MB, free: 12.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.4902, allocations: 0 / 496.2 MB, free: 12.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002471/0.4905, allocations: 109.6 kB / 496.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/0.4905, allocations: 102.8 kB / 496.4 MB, free: 12.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002338/0.4908, allocations: 222.2 kB / 496.6 MB, free: 12.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.4908, allocations: 26.27 kB / 496.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.566e-05/0.4909, allocations: 144.1 kB / 496.8 MB, free: 12.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.4909, allocations: 35.55 kB / 496.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.68e-06/0.491, allocations: 0 / 496.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.4911, allocations: 326.8 kB / 497.1 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.603e-05/0.4911, allocations: 24 kB / 497.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.52e-05/0.4912, allocations: 72.27 kB / 497.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.094e-05/0.4913, allocations: 37.88 kB / 497.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4913, allocations: 0 / 497.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001923/0.4915, allocations: 125.4 kB / 497.4 MB, free: 11.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.4915, allocations: 4 kB / 497.4 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.4915, allocations: 0 / 497.4 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.4916, allocations: 7.953 kB / 497.4 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.4917, allocations: 32.02 kB / 497.4 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.4917, allocations: 0 / 497.4 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.414e-05/0.4918, allocations: 15.84 kB / 497.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.4918, allocations: 7.984 kB / 497.4 MB, free: 11.63 MB / 362.7 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 ($whenCondition1,$PRE.table.nextTimeEvent,table.nextTimeEvent,$PRE.table.nextTimeEventScaled,table.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.57e-05/0.4919, allocations: 105 kB / 497.5 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001683/0.4921, allocations: 114.3 kB / 497.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.4921, allocations: 23.77 kB / 497.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002145/0.4923, allocations: 115.4 kB / 497.8 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.4923, allocations: 4.875 kB / 497.8 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4924, allocations: 4 kB / 497.8 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.4924, allocations: 3.984 kB / 497.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002182/0.4926, allocations: 218 kB / 498 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4926, allocations: 4.594 kB / 498 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.21e-05/0.4927, allocations: 19.98 kB / 498 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.4927, allocations: 0.875 kB / 498 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.4927, allocations: 0 / 498 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4927, allocations: 3.953 kB / 498 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.4927, allocations: 0 / 498 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.493, allocations: 186.3 kB / 498.2 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.996e-05/0.4931, allocations: 97.52 kB / 498.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.4932, allocations: 3.984 kB / 498.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.418e-05/0.4933, allocations: 5.188 kB / 498.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.993e-05/0.4933, allocations: 15.94 kB / 498.3 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.4933, allocations: 4 kB / 498.3 MB, free: 10.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001554/0.4935, allocations: 195.5 kB / 498.5 MB, free: 10.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4935, allocations: 0 / 498.5 MB, free: 10.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002842/0.4938, allocations: 61.25 kB / 498.6 MB, free: 10.39 MB / 362.7 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.nextTimeEvent,table.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001281/0.4951, allocations: 0.9929 MB / 499.6 MB, free: 9.527 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001643/0.4953, allocations: 75.92 kB / 499.7 MB, free: 9.453 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4953, allocations: 0 / 499.7 MB, free: 9.453 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.062e-05/0.4953, allocations: 32.12 kB / 499.7 MB, free: 9.422 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.4956, allocations: 42.19 kB / 499.7 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007873/0.4964, allocations: 376.7 kB / 0.4884 GB, free: 8.988 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.4967, allocations: 0.7397 MB / 0.4891 GB, free: 8.223 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.415e-05/0.4968, allocations: 26.58 kB / 0.4891 GB, free: 8.199 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.299e-05/0.4969, allocations: 59.41 kB / 0.4892 GB, free: 8.141 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4969, allocations: 0 / 0.4892 GB, free: 8.141 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02362/0.5205, allocations: 3.782 MB / 0.4929 GB, free: 4.438 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/0.5208, allocations: 159.1 kB / 0.493 GB, free: 4.246 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/2.163, allocations: 0 / 0.493 GB, free: 4.246 MB / 362.7 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/linux/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)