Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.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.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",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.001388/0.001388, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 239.3 MB, free: 4.598 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.001226/0.001226, allocations: 184.5 kB / 289.5 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03559/0.03559, allocations: 8.797 MB / 348.5 MB, free: 4.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 76.47 kB / 411.2 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.09108, allocations: 51.57 MB / 462.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001722/0.09285, allocations: 0.4989 MB / 463.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001396/0.09301, allocations: 23.89 kB / 463.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.43e-05/0.09304, allocations: 0 / 463.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.294e-05/0.09307, allocations: 0 / 463.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.067e-05/0.09312, allocations: 7.938 kB / 463.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001029/0.09323, allocations: 0 / 463.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.021e-05/0.0933, allocations: 23.91 kB / 463.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.774e-05/0.09335, allocations: 0 / 463.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.479e-05/0.09338, allocations: 7.938 kB / 463.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.29e-05/0.09344, allocations: 11.98 kB / 463.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.09346, allocations: 0 / 463.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.062e-05/0.09347, allocations: 0 / 463.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.577e-05/0.09349, allocations: 3.938 kB / 463.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.323e-05/0.09353, allocations: 8 kB / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 5.552e-05/0.09359, allocations: 7.938 kB / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.0936, allocations: 0 / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.09361, allocations: 0 / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.09362, allocations: 0 / 463.3 MB, free: 13.7 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003977/0.09402, allocations: 331.7 kB / 463.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/0.09409, allocations: 16.03 kB / 463.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.102e-05/0.09412, allocations: 38.67 kB / 463.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.058e-05/0.09415, allocations: 0.9375 kB / 463.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.09428, allocations: 168.4 kB / 463.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.09429, allocations: 384 / 463.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.09432, allocations: 384 / 463.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.701e-05/0.09441, allocations: 38.25 kB / 463.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.09443, allocations: 3.938 kB / 463.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-06/0.09444, allocations: 0 / 463.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.09445, allocations: 4 kB / 463.9 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.478e-05/0.09449, allocations: 15.98 kB / 463.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001565/0.09465, allocations: 153.7 kB / 464.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.182e-05/0.09473, allocations: 42.55 kB / 464.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.729e-05/0.09476, allocations: 8.859 kB / 464.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.09478, allocations: 0 / 464.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.09481, allocations: 38.56 kB / 464.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 8.12e-07/0.09482, allocations: 4 kB / 464.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.000135/0.09496, allocations: 57.56 kB / 464.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.095, allocations: 51.41 kB / 464.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.522e-05/0.09506, allocations: 97.84 kB / 464.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.09508, allocations: 25.7 kB / 464.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.09519, allocations: 84.14 kB / 464.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.526e-05/0.09522, allocations: 7.906 kB / 464.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-05/0.09526, allocations: 25.59 kB / 464.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.09543, allocations: 322.8 kB / 464.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.42e-05/0.09545, allocations: 4 kB / 464.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.188e-05/0.09546, allocations: 8 kB / 464.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.634e-05/0.0955, allocations: 16.86 kB / 464.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.09551, allocations: 0 / 464.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.564e-05/0.09559, allocations: 49.62 kB / 464.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.09561, allocations: 7.938 kB / 464.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.09562, allocations: 0 / 464.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.09563, allocations: 0 / 464.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.248e-05/0.09572, allocations: 11.98 kB / 464.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.09573, allocations: 4 kB / 464.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.916e-05/0.09576, allocations: 7.906 kB / 464.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.356e-06/0.09577, allocations: 0 / 464.9 MB, free: 11.85 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (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 prepare postOptimizeDAE: time 6.346e-05/0.09583, allocations: 118.4 kB / 465.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.01e-05/0.09585, allocations: 7.938 kB / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.795e-05/0.09587, allocations: 3.5 kB / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.09588, allocations: 0 / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.09589, allocations: 0 / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.09589, allocations: 0.5156 kB / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.096, allocations: 157.7 kB / 465.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.09601, allocations: 0 / 465.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.66e-05/0.09608, allocations: 11.98 kB / 465.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.09609, allocations: 3.938 kB / 465.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-06/0.0961, allocations: 0 / 465.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.09611, allocations: 0 / 465.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.09612, allocations: 7.938 kB / 465.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.09625, allocations: 77.11 kB / 465.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.562e-05/0.0963, allocations: 89.02 kB / 465.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.09632, allocations: 3.938 kB / 465.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.754e-05/0.09635, allocations: 0 / 465.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.424e-05/0.09638, allocations: 8.016 kB / 465.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.09639, allocations: 4 kB / 465.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.438e-05/0.09643, allocations: 79.28 kB / 465.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09644, allocations: 0 / 465.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001957/0.09664, allocations: 4 kB / 465.5 MB, free: 11.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (3): * Single equations (assignments): 3 * 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.0003341/0.09698, allocations: 0.6201 MB / 466.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.878e-05/0.09707, allocations: 16 kB / 466.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.09708, allocations: 0 / 466.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.404e-05/0.0971, allocations: 7.938 kB / 466.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/0.09724, allocations: 7.938 kB / 466.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009769/0.09822, allocations: 1.176 MB / 467.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.09847, allocations: 0.6768 MB / 468 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.326e-05/0.0985, allocations: 0 / 468 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.666e-05/0.09853, allocations: 11.44 kB / 468 MB, free: 8.531 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.09854, allocations: 4 kB / 468 MB, free: 8.527 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01783/0.1164, allocations: 1.087 MB / 469.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.555/7.671, allocations: 8 kB / 469.1 MB, free: 7.48 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.FirstSteps.Electrical2_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_Electrical2.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1)