Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical4.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.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",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.008269/0.008269, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.592/1.592, allocations: 222.9 MB / 239.4 MB, free: 4.438 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.00155/0.00155, allocations: 184.5 kB / 289.7 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03723/0.03723, allocations: 8.793 MB / 348.7 MB, free: 4.566 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 75.88 kB / 463.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1341, allocations: 51.56 MB / 0.5029 GB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.003567/0.1378, allocations: 1.813 MB / 0.5047 GB, free: 8.109 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009022/0.1387, allocations: 466.8 kB / 0.5051 GB, free: 7.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.628e-05/0.1388, allocations: 0 / 0.5051 GB, free: 7.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.139, allocations: 19.84 kB / 0.5051 GB, free: 7.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.534e-05/0.1391, allocations: 27.7 kB / 0.5052 GB, free: 7.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000156/0.1393, allocations: 31.91 kB / 0.5052 GB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.1395, allocations: 123.5 kB / 0.5053 GB, free: 7.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.1397, allocations: 49.03 kB / 0.5054 GB, free: 7.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.212e-05/0.1397, allocations: 43.86 kB / 0.5054 GB, free: 7.359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.1399, allocations: 47.78 kB / 0.5054 GB, free: 7.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.942e-05/0.1399, allocations: 11.94 kB / 0.5055 GB, free: 7.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.82e-05/0.1399, allocations: 16 kB / 0.5055 GB, free: 7.285 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.77e-05/0.14, allocations: 19.92 kB / 0.5055 GB, free: 7.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.018e-05/0.1401, allocations: 55.73 kB / 0.5055 GB, free: 7.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.1403, allocations: 119.5 kB / 0.5057 GB, free: 7.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1403, allocations: 0 / 0.5057 GB, free: 7.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1403, allocations: 0 / 0.5057 GB, free: 7.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1403, allocations: 0 / 0.5057 GB, free: 7.094 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.0006524/0.141, allocations: 419 kB / 0.5061 GB, free: 6.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.141, allocations: 12.03 kB / 0.5061 GB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.083e-05/0.1411, allocations: 38.75 kB / 0.5061 GB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.815e-05/0.1412, allocations: 24.77 kB / 0.5061 GB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003002/0.1415, allocations: 192.2 kB / 0.5063 GB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.1415, allocations: 12.31 kB / 0.5063 GB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.1415, allocations: 12.38 kB / 0.5063 GB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/0.1417, allocations: 105.7 kB / 0.5064 GB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.1418, allocations: 3.984 kB / 0.5064 GB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.1418, allocations: 8 kB / 0.5064 GB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1418, allocations: 0 / 0.5064 GB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.1419, allocations: 67.91 kB / 0.5065 GB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008616/0.1428, allocations: 0.4905 MB / 0.507 GB, free: 5.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001086/0.1429, allocations: 46.5 kB / 0.507 GB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.622e-05/0.143, allocations: 20.86 kB / 0.5071 GB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.143, allocations: 96 / 0.5071 GB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/0.143, allocations: 38.55 kB / 0.5071 GB, free: 5.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.143, allocations: 0 / 0.5071 GB, free: 5.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002092/0.1432, allocations: 65.64 kB / 0.5072 GB, free: 5.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.1433, allocations: 51.41 kB / 0.5072 GB, free: 5.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.1434, allocations: 135.7 kB / 0.5073 GB, free: 5.164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.966e-05/0.1435, allocations: 29.7 kB / 0.5074 GB, free: 5.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.416e-05/0.1436, allocations: 128 kB / 0.5075 GB, free: 4.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.1436, allocations: 15.89 kB / 0.5075 GB, free: 4.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/0.1437, allocations: 25.66 kB / 0.5075 GB, free: 4.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.1438, allocations: 318.8 kB / 0.5078 GB, free: 4.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.271e-05/0.1439, allocations: 12 kB / 0.5078 GB, free: 4.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.974e-05/0.1439, allocations: 34.56 kB / 0.5079 GB, free: 4.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.853e-05/0.144, allocations: 54.58 kB / 0.5079 GB, free: 4.512 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.144, allocations: 0 / 0.5079 GB, free: 4.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001342/0.1442, allocations: 77.58 kB / 0.508 GB, free: 4.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.1442, allocations: 7.938 kB / 0.508 GB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1442, allocations: 8.062 kB / 0.508 GB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1442, allocations: 0 / 0.508 GB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1443, allocations: 15.98 kB / 0.508 GB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.1444, allocations: 4.062 kB / 0.508 GB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.142e-05/0.1444, allocations: 15.89 kB / 0.508 GB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-06/0.1444, allocations: 4 kB / 0.508 GB, free: 4.375 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.0001095/0.1445, allocations: 121.7 kB / 0.5082 GB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.13e-05/0.1446, allocations: 11.89 kB / 0.5082 GB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.276e-05/0.1446, allocations: 8.25 kB / 0.5082 GB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.1446, allocations: 0 / 0.5082 GB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1446, allocations: 0 / 0.5082 GB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.1446, allocations: 4 kB / 0.5082 GB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.1449, allocations: 201.5 kB / 0.5084 GB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1449, allocations: 0 / 0.5084 GB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.163e-05/0.145, allocations: 19.92 kB / 0.5084 GB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.145, allocations: 3.938 kB / 0.5084 GB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.145, allocations: 0 / 0.5084 GB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.145, allocations: 0 / 0.5084 GB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.145, allocations: 0 / 0.5084 GB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.1452, allocations: 163.6 kB / 0.5086 GB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.765e-05/0.1453, allocations: 89.2 kB / 0.5086 GB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.1453, allocations: 7.969 kB / 0.5087 GB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.458e-05/0.1454, allocations: 4 kB / 0.5087 GB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.424e-05/0.1454, allocations: 0 / 0.5087 GB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.1454, allocations: 4 kB / 0.5087 GB, free: 3.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.444e-05/0.1455, allocations: 109.5 kB / 0.5088 GB, free: 3.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1456, allocations: 0 / 0.5088 GB, free: 3.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002451/0.1458, allocations: 19.94 kB / 0.5088 GB, free: 3.523 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.0006129/0.1464, allocations: 0.7046 MB / 0.5095 GB, free: 2.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001431/0.1466, allocations: 35.92 kB / 0.5095 GB, free: 2.758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1466, allocations: 0 / 0.5095 GB, free: 2.758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.937e-05/0.1466, allocations: 8 kB / 0.5095 GB, free: 2.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.1469, allocations: 11.98 kB / 0.5095 GB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.1489, allocations: 1.583 MB / 0.5111 GB, free: 1.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004244/0.1493, allocations: 0.7002 MB / 0.5118 GB, free: 344 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.047e-05/0.1494, allocations: 4.672 kB / 0.5118 GB, free: 340 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.783e-05/0.1494, allocations: 27.42 kB / 0.5118 GB, free: 312 kB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1494, allocations: 4 kB / 0.5118 GB, free: 308 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02627/0.1757, allocations: 2.014 MB / 0.5138 GB, free: 14.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.007/8.183, allocations: 3.938 kB / 0.5138 GB, free: 14.36 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical4.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.FirstSteps.Electrical4_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_FirstSteps_Electrical4.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe 2>&1)