Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical1.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.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",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.0064/0.0064, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.529/1.529, allocations: 222.9 MB / 239.4 MB, free: 4.379 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.001827/0.001827, allocations: 188.5 kB / 289.7 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06698/0.06698, allocations: 8.795 MB / 348.7 MB, free: 4.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002292/0.002292, allocations: 75.88 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1191, allocations: 51.57 MB / 0.5029 GB, free: 9.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.001831/0.1209, allocations: 0.4911 MB / 0.5034 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001677/0.1211, allocations: 23.89 kB / 0.5034 GB, free: 9.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.443e-05/0.1212, allocations: 3.938 kB / 0.5034 GB, free: 9.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.302e-05/0.1212, allocations: 0 / 0.5034 GB, free: 9.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.726e-05/0.1212, allocations: 7.938 kB / 0.5034 GB, free: 9.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000141/0.1214, allocations: 4 kB / 0.5034 GB, free: 9.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.538e-05/0.1215, allocations: 11.98 kB / 0.5034 GB, free: 9.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.989e-05/0.1215, allocations: 3.938 kB / 0.5034 GB, free: 9.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.984e-05/0.1215, allocations: 4 kB / 0.5034 GB, free: 9.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.868e-05/0.1216, allocations: 4 kB / 0.5034 GB, free: 9.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.1216, allocations: 0 / 0.5034 GB, free: 9.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.027e-06/0.1216, allocations: 0 / 0.5034 GB, free: 9.414 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.41e-05/0.1217, allocations: 11.92 kB / 0.5035 GB, free: 9.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.581e-05/0.1217, allocations: 3.984 kB / 0.5035 GB, free: 9.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.876e-05/0.1218, allocations: 8.156 kB / 0.5035 GB, free: 9.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1218, allocations: 8 kB / 0.5035 GB, free: 9.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1218, allocations: 0 / 0.5035 GB, free: 9.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.1218, allocations: 0 / 0.5035 GB, free: 9.383 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.0004337/0.1222, allocations: 327.5 kB / 0.5038 GB, free: 9.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.1223, allocations: 8.031 kB / 0.5038 GB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.388e-05/0.1223, allocations: 34.69 kB / 0.5038 GB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.39e-05/0.1224, allocations: 4.938 kB / 0.5038 GB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.1225, allocations: 172.3 kB / 0.504 GB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.1225, allocations: 384 / 0.504 GB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.1226, allocations: 4.375 kB / 0.504 GB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.1227, allocations: 34.27 kB / 0.504 GB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1227, allocations: 3.938 kB / 0.504 GB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.1227, allocations: 4 kB / 0.504 GB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1227, allocations: 0 / 0.504 GB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.812e-05/0.1228, allocations: 7.984 kB / 0.504 GB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001969/0.123, allocations: 153.7 kB / 0.5042 GB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.31e-05/0.1231, allocations: 38.52 kB / 0.5042 GB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.707e-05/0.1231, allocations: 20.94 kB / 0.5042 GB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.393e-05/0.1231, allocations: 0 / 0.5042 GB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.1232, allocations: 30.56 kB / 0.5043 GB, free: 8.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.1232, allocations: 0 / 0.5043 GB, free: 8.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000167/0.1233, allocations: 53.56 kB / 0.5043 GB, free: 8.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.1234, allocations: 55.34 kB / 0.5044 GB, free: 8.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.977e-05/0.1235, allocations: 102 kB / 0.5045 GB, free: 8.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.1235, allocations: 29.7 kB / 0.5045 GB, free: 8.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.232e-05/0.1236, allocations: 84.14 kB / 0.5046 GB, free: 8.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.345e-05/0.1236, allocations: 15.89 kB / 0.5046 GB, free: 8.012 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.351e-05/0.1237, allocations: 13.72 kB / 0.5046 GB, free: 7.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1238, allocations: 314.8 kB / 0.5049 GB, free: 7.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.839e-05/0.1239, allocations: 7.938 kB / 0.5049 GB, free: 7.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.342e-05/0.1239, allocations: 7.984 kB / 0.5049 GB, free: 7.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.4e-05/0.1239, allocations: 16.86 kB / 0.5049 GB, free: 7.641 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1239, allocations: 4 kB / 0.505 GB, free: 7.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.541e-05/0.124, allocations: 53.62 kB / 0.505 GB, free: 7.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.124, allocations: 7.938 kB / 0.505 GB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.124, allocations: 4 kB / 0.505 GB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.1241, allocations: 0 / 0.505 GB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.918e-05/0.1242, allocations: 8 kB / 0.505 GB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1242, allocations: 0 / 0.505 GB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.1242, allocations: 0 / 0.505 GB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-06/0.1242, allocations: 0 / 0.505 GB, free: 7.559 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.087e-05/0.1243, allocations: 121.7 kB / 0.5051 GB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.927e-06/0.1243, allocations: 7.938 kB / 0.5051 GB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.239e-05/0.1243, allocations: 7.5 kB / 0.5052 GB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.1243, allocations: 0 / 0.5052 GB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1243, allocations: 0 / 0.5052 GB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1244, allocations: 0 / 0.5052 GB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.1245, allocations: 149.7 kB / 0.5053 GB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1245, allocations: 4 kB / 0.5053 GB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.585e-05/0.1246, allocations: 12 kB / 0.5053 GB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.1246, allocations: 7.938 kB / 0.5053 GB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.1246, allocations: 4 kB / 0.5053 GB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1246, allocations: 3.938 kB / 0.5053 GB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1246, allocations: 0 / 0.5053 GB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001379/0.1248, allocations: 81.06 kB / 0.5054 GB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.898e-05/0.1248, allocations: 81.05 kB / 0.5055 GB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.1248, allocations: 3.938 kB / 0.5055 GB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.961e-05/0.1249, allocations: 4.031 kB / 0.5055 GB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.514e-05/0.1249, allocations: 3.938 kB / 0.5055 GB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.1249, allocations: 4.062 kB / 0.5055 GB, free: 6.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.371e-05/0.1249, allocations: 83.27 kB / 0.5056 GB, free: 6.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1249, allocations: 0 / 0.5056 GB, free: 6.891 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001713/0.1251, allocations: 0 / 0.5056 GB, free: 6.891 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.0004187/0.1255, allocations: 0.6129 MB / 0.5062 GB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.15e-05/0.1256, allocations: 20.08 kB / 0.5062 GB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.1257, allocations: 4 kB / 0.5062 GB, free: 6.223 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.809e-05/0.1257, allocations: 11.94 kB / 0.5062 GB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.1258, allocations: 1.875 kB / 0.5062 GB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009925/0.1268, allocations: 1.118 MB / 0.5073 GB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.1272, allocations: 0.6805 MB / 0.508 GB, free: 4.305 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.777e-05/0.1272, allocations: 0 / 0.508 GB, free: 4.305 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.298e-05/0.1272, allocations: 11.44 kB / 0.508 GB, free: 4.293 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1272, allocations: 0 / 0.508 GB, free: 4.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.1513, allocations: 1.08 MB / 0.509 GB, free: 3.273 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.797/7.948, allocations: 10.25 kB / 0.509 GB, free: 3.266 MB / 350.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.FirstSteps.Electrical1_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_Electrical1.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe 2>&1)