Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.MixedDeclaration.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.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",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.001667/0.001668, allocations: 112.5 kB / 15.73 MB, free: 76 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.462/1.462, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.002337/0.002337, allocations: 188.5 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03486/0.03486, allocations: 8.796 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001895, allocations: 75.86 kB / 463.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.128, allocations: 51.56 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002849/0.1309, allocations: 1.268 MB / 0.5041 GB, free: 8.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 7.364e-05/0.131, allocations: 11.94 kB / 0.5041 GB, free: 8.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.392e-05/0.131, allocations: 4 kB / 0.5041 GB, free: 8.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.978e-05/0.1311, allocations: 0 / 0.5041 GB, free: 8.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.015e-05/0.1312, allocations: 3.938 kB / 0.5041 GB, free: 8.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.723e-05/0.1312, allocations: 0 / 0.5041 GB, free: 8.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.974e-05/0.1313, allocations: 7.984 kB / 0.5041 GB, free: 8.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.986e-05/0.1314, allocations: 4 kB / 0.5042 GB, free: 8.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.98e-05/0.1314, allocations: 11.92 kB / 0.5042 GB, free: 8.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.739e-05/0.1314, allocations: 0 / 0.5042 GB, free: 8.699 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.1315, allocations: 0 / 0.5042 GB, free: 8.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.973e-06/0.1315, allocations: 7.938 kB / 0.5042 GB, free: 8.691 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.487e-05/0.1315, allocations: 0 / 0.5042 GB, free: 8.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.1315, allocations: 7.938 kB / 0.5042 GB, free: 8.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.823e-05/0.1316, allocations: 7.938 kB / 0.5042 GB, free: 8.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.1316, allocations: 4 kB / 0.5042 GB, free: 8.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1316, allocations: 3.938 kB / 0.5042 GB, free: 8.668 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1316, allocations: 0 / 0.5042 GB, free: 8.668 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004111/0.132, allocations: 319.5 kB / 0.5045 GB, free: 8.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.1321, allocations: 12.03 kB / 0.5045 GB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.832e-05/0.1322, allocations: 30.75 kB / 0.5045 GB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.124e-05/0.1322, allocations: 0.9375 kB / 0.5045 GB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.1323, allocations: 172.4 kB / 0.5047 GB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.1324, allocations: 4.375 kB / 0.5047 GB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-06/0.1324, allocations: 384 / 0.5047 GB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.331e-05/0.1325, allocations: 39.98 kB / 0.5047 GB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1325, allocations: 7.875 kB / 0.5048 GB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-06/0.1325, allocations: 0 / 0.5048 GB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.1325, allocations: 3.984 kB / 0.5048 GB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.932e-05/0.1325, allocations: 4 kB / 0.5048 GB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004087/0.133, allocations: 479.6 kB / 0.5052 GB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.059e-05/0.1331, allocations: 169.1 kB / 0.5054 GB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.952e-05/0.1331, allocations: 88.17 kB / 0.5055 GB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.1332, allocations: 79.28 kB / 0.5055 GB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/0.1332, allocations: 105.8 kB / 0.5056 GB, free: 6.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.12e-07/0.1332, allocations: 0 / 0.5056 GB, free: 6.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.617e-05/0.1333, allocations: 25.7 kB / 0.5057 GB, free: 6.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.1334, allocations: 134.6 kB / 0.5058 GB, free: 6.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.223e-05/0.1335, allocations: 105.8 kB / 0.5059 GB, free: 6.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.1335, allocations: 25.7 kB / 0.5059 GB, free: 6.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.805e-05/0.1336, allocations: 96.08 kB / 0.506 GB, free: 6.578 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.025e-06/0.1336, allocations: 0 / 0.506 GB, free: 6.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.1337, allocations: 13.72 kB / 0.506 GB, free: 6.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1338, allocations: 318.8 kB / 0.5063 GB, free: 6.238 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.054e-05/0.1338, allocations: 0 / 0.5063 GB, free: 6.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.881e-05/0.1338, allocations: 17.72 kB / 0.5063 GB, free: 6.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.851e-05/0.1339, allocations: 17.72 kB / 0.5064 GB, free: 6.191 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1339, allocations: 0 / 0.5064 GB, free: 6.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001254/0.134, allocations: 45.64 kB / 0.5064 GB, free: 6.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.134, allocations: 4 kB / 0.5064 GB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.134, allocations: 0 / 0.5064 GB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.1341, allocations: 7.922 kB / 0.5064 GB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.085e-05/0.1341, allocations: 4 kB / 0.5064 GB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.1341, allocations: 256 / 0.5064 GB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.61e-05/0.1342, allocations: 4 kB / 0.5064 GB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.1342, allocations: 8.062 kB / 0.5064 GB, free: 6.113 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001063/0.1343, allocations: 196.9 kB / 0.5066 GB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.166e-05/0.1344, allocations: 108.9 kB / 0.5067 GB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.017e-05/0.1344, allocations: 108.1 kB / 0.5068 GB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.708e-05/0.1345, allocations: 184.2 kB / 0.507 GB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.961e-05/0.1346, allocations: 180.3 kB / 0.5072 GB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.247e-05/0.1347, allocations: 184.2 kB / 0.5074 GB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002676/0.1349, allocations: 413.2 kB / 0.5077 GB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-05/0.135, allocations: 101 kB / 0.5078 GB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.496e-05/0.135, allocations: 104.9 kB / 0.5079 GB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.361e-05/0.1351, allocations: 176.3 kB / 0.5081 GB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.322e-05/0.1352, allocations: 188.2 kB / 0.5083 GB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.367e-05/0.1352, allocations: 184.2 kB / 0.5085 GB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.292e-05/0.1353, allocations: 176.3 kB / 0.5086 GB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.1355, allocations: 303.9 kB / 0.5089 GB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.172e-05/0.1356, allocations: 194 kB / 0.5091 GB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.879e-05/0.1357, allocations: 184.3 kB / 0.5093 GB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.717e-05/0.1358, allocations: 101 kB / 0.5094 GB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.527e-05/0.1359, allocations: 180.2 kB / 0.5096 GB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.372e-05/0.1359, allocations: 101 kB / 0.5096 GB, free: 2.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.126e-05/0.136, allocations: 91.27 kB / 0.5097 GB, free: 2.504 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.136, allocations: 0 / 0.5097 GB, free: 2.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.1363, allocations: 4 kB / 0.5097 GB, free: 2.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.0004317/0.1368, allocations: 0.8086 MB / 0.5105 GB, free: 1.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.405e-05/0.1368, allocations: 4 kB / 0.5105 GB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1369, allocations: 0 / 0.5105 GB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.396e-06/0.1369, allocations: 4.125 kB / 0.5105 GB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004001/0.1373, allocations: 467.6 kB / 0.511 GB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.1385, allocations: 1.272 MB / 0.5122 GB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.1388, allocations: 0.6766 MB / 0.5129 GB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.966e-05/0.1388, allocations: 11.95 kB / 0.5129 GB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.546e-05/0.1388, allocations: 7.438 kB / 0.5129 GB, free: 15.11 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1388, allocations: 0 / 0.5129 GB, free: 15.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.1631, allocations: 0.9561 MB / 0.5138 GB, free: 14.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.988/8.151, allocations: 9.547 kB / 0.5138 GB, free: 14.21 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; mkfifo HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe >> ../files/HanserModelica_HanserModelica.Classes.MixedDeclaration.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Classes.MixedDeclaration_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_Classes_MixedDeclaration.fmu > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)