Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical5.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.FirstSteps.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",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.006905/0.006905, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.371/1.371, allocations: 222.9 MB / 239.4 MB, free: 4.574 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.001589/0.001589, allocations: 196.4 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03541/0.03541, allocations: 8.795 MB / 348.7 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 75.88 kB / 463.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1145, allocations: 51.56 MB / 0.5029 GB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical5): time 0.003444/0.118, allocations: 1.801 MB / 0.5047 GB, free: 8.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008891/0.1189, allocations: 470.8 kB / 0.5051 GB, free: 7.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.119, allocations: 0 / 0.5051 GB, free: 7.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.1192, allocations: 19.8 kB / 0.5051 GB, free: 7.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.1193, allocations: 31.7 kB / 0.5052 GB, free: 7.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001701/0.1195, allocations: 23.97 kB / 0.5052 GB, free: 7.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002274/0.1198, allocations: 127.4 kB / 0.5053 GB, free: 7.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.1199, allocations: 41.09 kB / 0.5053 GB, free: 7.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.826e-05/0.12, allocations: 47.8 kB / 0.5054 GB, free: 7.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.1202, allocations: 55.77 kB / 0.5054 GB, free: 7.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.474e-05/0.1202, allocations: 8 kB / 0.5055 GB, free: 7.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.57e-05/0.1202, allocations: 16 kB / 0.5055 GB, free: 7.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.559e-05/0.1203, allocations: 19.92 kB / 0.5055 GB, free: 7.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.625e-05/0.1204, allocations: 59.73 kB / 0.5055 GB, free: 7.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.1206, allocations: 119.9 kB / 0.5057 GB, free: 7.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1206, allocations: 0 / 0.5057 GB, free: 7.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1206, allocations: 0 / 0.5057 GB, free: 7.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1206, allocations: 0 / 0.5057 GB, free: 7.191 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006219/0.1212, allocations: 407.1 kB / 0.506 GB, free: 6.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.1213, allocations: 16.03 kB / 0.5061 GB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.199e-05/0.1214, allocations: 42.73 kB / 0.5061 GB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.353e-05/0.1214, allocations: 16.78 kB / 0.5061 GB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.1217, allocations: 196.1 kB / 0.5063 GB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.1217, allocations: 8.375 kB / 0.5063 GB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.838e-05/0.1218, allocations: 8.375 kB / 0.5063 GB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.122, allocations: 113.7 kB / 0.5064 GB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.122, allocations: 3.938 kB / 0.5064 GB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.122, allocations: 8 kB / 0.5064 GB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.122, allocations: 0 / 0.5064 GB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.1222, allocations: 59.97 kB / 0.5065 GB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008332/0.123, allocations: 0.4904 MB / 0.507 GB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.995e-05/0.1231, allocations: 50.5 kB / 0.507 GB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.939e-05/0.1232, allocations: 20.86 kB / 0.507 GB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.1232, allocations: 0 / 0.507 GB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.1232, allocations: 30.56 kB / 0.5071 GB, free: 5.555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.31e-07/0.1232, allocations: 4 kB / 0.5071 GB, free: 5.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002692/0.1235, allocations: 69.8 kB / 0.5071 GB, free: 5.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.1235, allocations: 51.41 kB / 0.5072 GB, free: 5.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.1238, allocations: 147.2 kB / 0.5073 GB, free: 5.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.1238, allocations: 29.7 kB / 0.5074 GB, free: 5.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.416e-05/0.1239, allocations: 120 kB / 0.5075 GB, free: 5.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.51e-05/0.1239, allocations: 15.81 kB / 0.5075 GB, free: 5.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-05/0.124, allocations: 17.72 kB / 0.5075 GB, free: 5.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1241, allocations: 322.8 kB / 0.5078 GB, free: 4.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.823e-05/0.1241, allocations: 12 kB / 0.5078 GB, free: 4.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.269e-05/0.1242, allocations: 38.56 kB / 0.5079 GB, free: 4.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.026e-05/0.1243, allocations: 54.52 kB / 0.5079 GB, free: 4.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1243, allocations: 0 / 0.5079 GB, free: 4.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001976/0.1245, allocations: 81.53 kB / 0.508 GB, free: 4.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.1245, allocations: 4 kB / 0.508 GB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1245, allocations: 4 kB / 0.508 GB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.1245, allocations: 3.984 kB / 0.508 GB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.945e-05/0.1246, allocations: 12 kB / 0.508 GB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.1246, allocations: 4.062 kB / 0.508 GB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.872e-05/0.1247, allocations: 7.938 kB / 0.508 GB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.1247, allocations: 4 kB / 0.508 GB, free: 4.492 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001195/0.1248, allocations: 125.7 kB / 0.5082 GB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.125e-05/0.1249, allocations: 11.84 kB / 0.5082 GB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.337e-05/0.1249, allocations: 12.23 kB / 0.5082 GB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1249, allocations: 0 / 0.5082 GB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1249, allocations: 4 kB / 0.5082 GB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1249, allocations: 0 / 0.5082 GB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002185/0.1252, allocations: 201.5 kB / 0.5084 GB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1252, allocations: 4 kB / 0.5084 GB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.044e-05/0.1252, allocations: 8 kB / 0.5084 GB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1253, allocations: 0 / 0.5084 GB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.1253, allocations: 0 / 0.5084 GB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1253, allocations: 0 / 0.5084 GB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1253, allocations: 4.094 kB / 0.5084 GB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.1255, allocations: 167.4 kB / 0.5085 GB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.589e-05/0.1255, allocations: 89.17 kB / 0.5086 GB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.1256, allocations: 11.94 kB / 0.5086 GB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.933e-05/0.1256, allocations: 4 kB / 0.5086 GB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.876e-05/0.1257, allocations: 3.984 kB / 0.5087 GB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.1257, allocations: 0 / 0.5087 GB, free: 3.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.736e-05/0.1258, allocations: 109 kB / 0.5088 GB, free: 3.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1258, allocations: 0 / 0.5088 GB, free: 3.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002639/0.126, allocations: 27.84 kB / 0.5088 GB, free: 3.625 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.000467/0.1265, allocations: 0.6968 MB / 0.5095 GB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001209/0.1267, allocations: 35.92 kB / 0.5095 GB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1267, allocations: 0 / 0.5095 GB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.202e-05/0.1267, allocations: 12 kB / 0.5095 GB, free: 2.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.127, allocations: 11.98 kB / 0.5095 GB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.1289, allocations: 1.577 MB / 0.5111 GB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.1292, allocations: 0.7002 MB / 0.5117 GB, free: 460 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.533e-05/0.1293, allocations: 8.656 kB / 0.5118 GB, free: 452 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.183e-05/0.1293, allocations: 27.44 kB / 0.5118 GB, free: 424 kB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1294, allocations: 4 kB / 0.5118 GB, free: 420 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.149, allocations: 2.026 MB / 0.5138 GB, free: 14.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.52/7.669, allocations: 11.98 kB / 0.5138 GB, free: 14.45 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical5_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical5.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe 2>&1)