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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.0009505/0.0009504, allocations: 180.9 kB / 7.65 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.03884/0.03884, allocations: 8.709 MB / 16.79 MB, free: 3.391 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.332/1.332, allocations: 221.5 MB / 240.9 MB, free: 13.12 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.0008339/0.0008339, allocations: 94.83 kB / 293.9 MB, free: 7.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.461e-05/1.464e-05, allocations: 0 / 352.7 MB, free: 1.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 52.55 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3283/0.4417, allocations: 81.45 MB / 486.7 MB, free: 5.863 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.442, allocations: 67.28 kB / 486.8 MB, free: 5.832 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01181/0.4538, allocations: 4.991 MB / 491.8 MB, free: 1.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4538, allocations: 0 / 491.8 MB, free: 1.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.4539, allocations: 4 kB / 491.8 MB, free: 1.496 MB / 346.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.0005049/0.4544, allocations: 485.4 kB / 492.3 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.4544, allocations: 11.98 kB / 492.3 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.428e-05/0.4545, allocations: 23.72 kB / 492.3 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/0.4548, allocations: 236 kB / 492.5 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.4548, allocations: 4 kB / 492.5 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.4548, allocations: 7.938 kB / 492.5 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001451/0.455, allocations: 77.84 kB / 492.6 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.4552, allocations: 95.3 kB / 492.7 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.4552, allocations: 4 kB / 492.7 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.4552, allocations: 0 / 492.7 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.4552, allocations: 0 / 492.7 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006489/0.4559, allocations: 0.5146 MB / 493.2 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.4562, allocations: 102.7 kB / 493.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.098e-05/0.4562, allocations: 30.08 kB / 493.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.4563, allocations: 5.641 kB / 493.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001669/0.4564, allocations: 97.22 kB / 493.5 MB, free: 15.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.4565, allocations: 0 / 493.5 MB, free: 15.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002403/0.4567, allocations: 114.4 kB / 493.6 MB, free: 15.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.4568, allocations: 81.05 kB / 493.7 MB, free: 15.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.457, allocations: 220.3 kB / 493.9 MB, free: 15.24 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.457, allocations: 29.7 kB / 493.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.207e-05/0.4571, allocations: 140.1 kB / 494 MB, free: 15.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.4571, allocations: 35.55 kB / 494.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-06/0.4572, allocations: 0 / 494.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.4573, allocations: 326.8 kB / 494.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.102e-05/0.4574, allocations: 24 kB / 494.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.309e-05/0.4574, allocations: 64.88 kB / 494.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.915e-05/0.4575, allocations: 28.02 kB / 494.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4575, allocations: 4 kB / 494.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001922/0.4577, allocations: 117.4 kB / 494.6 MB, free: 14.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.4577, allocations: 8 kB / 494.6 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.4578, allocations: 0 / 494.6 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.4578, allocations: 0 / 494.6 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.4579, allocations: 38.81 kB / 494.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.4579, allocations: 4.094 kB / 494.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.559e-05/0.458, allocations: 11.94 kB / 494.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.458, allocations: 4 kB / 494.7 MB, free: 14.38 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.259e-05/0.4581, allocations: 101 kB / 494.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001661/0.4583, allocations: 122.1 kB / 494.9 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.4583, allocations: 16.66 kB / 494.9 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002102/0.4585, allocations: 133 kB / 495 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.4585, allocations: 4 kB / 495.1 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4585, allocations: 0 / 495.1 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.4586, allocations: 0 / 495.1 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000202/0.4588, allocations: 214.1 kB / 495.3 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.4588, allocations: 6.766 kB / 495.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.823e-05/0.4589, allocations: 19.98 kB / 495.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.4589, allocations: 0 / 495.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.4589, allocations: 3 kB / 495.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.4589, allocations: 4 kB / 495.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.4589, allocations: 3.953 kB / 495.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.4592, allocations: 180.8 kB / 495.5 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.211e-05/0.4593, allocations: 100.9 kB / 495.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.4593, allocations: 3.984 kB / 495.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.076e-05/0.4594, allocations: 8 kB / 495.6 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.99e-05/0.4594, allocations: 7.938 kB / 495.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.749e-06/0.4595, allocations: 8 kB / 495.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001739/0.4596, allocations: 172.6 kB / 495.8 MB, free: 13.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4597, allocations: 4.062 kB / 495.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002728/0.4599, allocations: 47.94 kB / 495.8 MB, free: 13.17 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.001447/0.4614, allocations: 0.9634 MB / 496.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000196/0.4616, allocations: 71.86 kB / 496.9 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4616, allocations: 0 / 496.9 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.657e-05/0.4617, allocations: 38.16 kB / 496.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.462, allocations: 21.67 kB / 496.9 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000887/0.4629, allocations: 374.2 kB / 497.3 MB, free: 11.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.4632, allocations: 0.7396 MB / 498 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.719e-05/0.4633, allocations: 30.91 kB / 498 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.36e-05/0.4634, allocations: 55.42 kB / 498.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4634, allocations: 0 / 498.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.4844, allocations: 3.445 MB / 0.4898 GB, free: 7.59 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001661/0.4846, allocations: 147 kB / 0.4899 GB, free: 7.398 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.697/2.182, allocations: 0 / 0.4899 GB, free: 7.398 MB / 362.7 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/linux/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)