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.005984/0.005984, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.506/1.506, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001564/0.001564, allocations: 192.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03737/0.03737, allocations: 8.81 MB / 348.7 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002317/0.002317, allocations: 83.86 kB / 463.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1164, allocations: 51.56 MB / 0.5029 GB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.00166/0.1181, allocations: 0.4989 MB / 0.5034 GB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001766/0.1183, allocations: 23.95 kB / 0.5034 GB, free: 9.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.604e-05/0.1183, allocations: 4 kB / 0.5034 GB, free: 9.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.095e-05/0.1184, allocations: 7.938 kB / 0.5034 GB, free: 9.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.294e-05/0.1184, allocations: 0 / 0.5034 GB, free: 9.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001352/0.1185, allocations: 7.938 kB / 0.5034 GB, free: 9.512 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.663e-05/0.1186, allocations: 15.92 kB / 0.5034 GB, free: 9.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.459e-05/0.1187, allocations: 3.938 kB / 0.5034 GB, free: 9.492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.713e-05/0.1187, allocations: 7.984 kB / 0.5035 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.346e-05/0.1188, allocations: 8 kB / 0.5035 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.882e-05/0.1188, allocations: 0 / 0.5035 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.047e-06/0.1188, allocations: 0 / 0.5035 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.869e-05/0.1189, allocations: 3.938 kB / 0.5035 GB, free: 9.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.897e-05/0.1189, allocations: 7.984 kB / 0.5035 GB, free: 9.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.284e-05/0.119, allocations: 16.16 kB / 0.5035 GB, free: 9.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.119, allocations: 0 / 0.5035 GB, free: 9.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.119, allocations: 0 / 0.5035 GB, free: 9.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.119, allocations: 0 / 0.5035 GB, free: 9.449 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000492/0.1195, allocations: 331.5 kB / 0.5038 GB, free: 9.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.1196, allocations: 8.031 kB / 0.5038 GB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.031e-05/0.1196, allocations: 30.75 kB / 0.5038 GB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.976e-05/0.1197, allocations: 8.938 kB / 0.5038 GB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.1198, allocations: 172.3 kB / 0.504 GB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.1198, allocations: 4.375 kB / 0.504 GB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.1199, allocations: 384 / 0.504 GB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.12, allocations: 38.19 kB / 0.5041 GB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.12, allocations: 3.938 kB / 0.5041 GB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.12, allocations: 8 kB / 0.5041 GB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.1201, allocations: 0 / 0.5041 GB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.926e-05/0.1201, allocations: 7.984 kB / 0.5041 GB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002045/0.1203, allocations: 153.7 kB / 0.5042 GB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.172e-05/0.1204, allocations: 38.52 kB / 0.5043 GB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.673e-05/0.1205, allocations: 16.94 kB / 0.5043 GB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.1205, allocations: 4 kB / 0.5043 GB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.1205, allocations: 30.56 kB / 0.5043 GB, free: 8.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.1205, allocations: 0 / 0.5043 GB, free: 8.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001603/0.1207, allocations: 49.62 kB / 0.5044 GB, free: 8.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/0.1207, allocations: 55.34 kB / 0.5044 GB, free: 8.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.866e-05/0.1208, allocations: 101.9 kB / 0.5045 GB, free: 8.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.1208, allocations: 25.7 kB / 0.5045 GB, free: 8.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.997e-05/0.1209, allocations: 88.12 kB / 0.5046 GB, free: 8.086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.363e-05/0.1209, allocations: 19.83 kB / 0.5046 GB, free: 8.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-05/0.121, allocations: 21.59 kB / 0.5046 GB, free: 8.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1211, allocations: 314.8 kB / 0.5049 GB, free: 7.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.736e-05/0.1212, allocations: 4 kB / 0.505 GB, free: 7.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.383e-05/0.1212, allocations: 7.984 kB / 0.505 GB, free: 7.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.876e-05/0.1212, allocations: 20.86 kB / 0.505 GB, free: 7.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1212, allocations: 0 / 0.505 GB, free: 7.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.278e-05/0.1213, allocations: 49.69 kB / 0.505 GB, free: 7.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.1213, allocations: 7.938 kB / 0.505 GB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1214, allocations: 0 / 0.505 GB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.1214, allocations: 4 kB / 0.505 GB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.93e-05/0.1215, allocations: 7.938 kB / 0.505 GB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1215, allocations: 4 kB / 0.5051 GB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.583e-05/0.1215, allocations: 0 / 0.5051 GB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-06/0.1215, allocations: 0 / 0.5051 GB, free: 7.609 MB / 350.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 9.508e-05/0.1216, allocations: 121.7 kB / 0.5052 GB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.557e-05/0.1216, allocations: 8.453 kB / 0.5052 GB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.428e-05/0.1217, allocations: 7.5 kB / 0.5052 GB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1217, allocations: 0 / 0.5052 GB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1217, allocations: 0 / 0.5052 GB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1217, allocations: 3.984 kB / 0.5052 GB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.1219, allocations: 153.7 kB / 0.5053 GB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1219, allocations: 0 / 0.5053 GB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.295e-05/0.1219, allocations: 8 kB / 0.5053 GB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.122, allocations: 3.938 kB / 0.5053 GB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.122, allocations: 8 kB / 0.5054 GB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.122, allocations: 0 / 0.5054 GB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.122, allocations: 4 kB / 0.5054 GB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.1221, allocations: 85 kB / 0.5054 GB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/0.1222, allocations: 77.11 kB / 0.5055 GB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.1222, allocations: 3.938 kB / 0.5055 GB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.815e-05/0.1222, allocations: 0 / 0.5055 GB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.42e-05/0.1223, allocations: 12.03 kB / 0.5055 GB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.1223, allocations: 0 / 0.5055 GB, free: 7.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.31e-05/0.1223, allocations: 83.27 kB / 0.5056 GB, free: 6.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1223, allocations: 0 / 0.5056 GB, free: 6.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001747/0.1225, allocations: 4 kB / 0.5056 GB, free: 6.938 MB / 350.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.0004809/0.123, allocations: 0.6047 MB / 0.5062 GB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.16e-05/0.1231, allocations: 23.92 kB / 0.5062 GB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1231, allocations: 0 / 0.5062 GB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.265e-05/0.1231, allocations: 8 kB / 0.5062 GB, free: 6.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.1233, allocations: 11.88 kB / 0.5062 GB, free: 6.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.1245, allocations: 1.179 MB / 0.5074 GB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.1249, allocations: 0.6766 MB / 0.5081 GB, free: 4.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.644e-05/0.1249, allocations: 7.984 kB / 0.5081 GB, free: 4.285 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.79e-05/0.125, allocations: 7.438 kB / 0.5081 GB, free: 4.277 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.125, allocations: 0 / 0.5081 GB, free: 4.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.1492, allocations: 1.11 MB / 0.5092 GB, free: 3.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.926/8.076, allocations: 3.984 kB / 0.5092 GB, free: 3.227 MB / 350.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)