Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.Attributes.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.VariablesTypes.Attributes,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_Attributes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.Attributes,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_Attributes",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.005818/0.005818, allocations: 100.5 kB / 15.73 MB, free: 6.059 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.477/1.477, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.002495/0.002495, allocations: 188.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.036/0.036, allocations: 8.792 MB / 348.7 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 75.88 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1198, allocations: 51.57 MB / 0.5029 GB, free: 9.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.Attributes): time 0.003066/0.123, allocations: 1.174 MB / 0.504 GB, free: 8.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 4.65e-05/0.1231, allocations: 7.938 kB / 0.5041 GB, free: 8.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.802e-05/0.1231, allocations: 0 / 0.5041 GB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.048e-05/0.1231, allocations: 8 kB / 0.5041 GB, free: 8.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.758e-05/0.1232, allocations: 0 / 0.5041 GB, free: 8.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.284e-05/0.1232, allocations: 3.984 kB / 0.5041 GB, free: 8.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.101e-05/0.1233, allocations: 7.938 kB / 0.5041 GB, free: 8.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.109e-05/0.1234, allocations: 8 kB / 0.5041 GB, free: 8.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.542e-05/0.1234, allocations: 7.922 kB / 0.5041 GB, free: 8.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.765e-05/0.1235, allocations: 4 kB / 0.5041 GB, free: 8.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.778e-05/0.1235, allocations: 0 / 0.5041 GB, free: 8.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.811e-06/0.1235, allocations: 0 / 0.5041 GB, free: 8.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.712e-05/0.1235, allocations: 7.984 kB / 0.5041 GB, free: 8.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.301e-05/0.1236, allocations: 7.938 kB / 0.5041 GB, free: 8.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.041e-05/0.1236, allocations: 8.219 kB / 0.5041 GB, free: 8.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1237, allocations: 0 / 0.5041 GB, free: 8.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1237, allocations: 0 / 0.5041 GB, free: 8.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.1237, allocations: 0 / 0.5041 GB, free: 8.734 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.000428/0.1241, allocations: 319.5 kB / 0.5044 GB, free: 8.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1242, allocations: 12.03 kB / 0.5044 GB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.528e-05/0.1242, allocations: 30.75 kB / 0.5045 GB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.8e-05/0.1242, allocations: 4.938 kB / 0.5045 GB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.1244, allocations: 172.3 kB / 0.5046 GB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.1244, allocations: 384 / 0.5046 GB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.1244, allocations: 4.375 kB / 0.5046 GB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.1245, allocations: 43.97 kB / 0.5047 GB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1246, allocations: 3.938 kB / 0.5047 GB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.1246, allocations: 3.984 kB / 0.5047 GB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1246, allocations: 0 / 0.5047 GB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.881e-05/0.1246, allocations: 15.94 kB / 0.5047 GB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005141/0.1252, allocations: 186.5 kB / 0.5049 GB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.017e-05/0.1252, allocations: 33.25 kB / 0.5049 GB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.838e-05/0.1253, allocations: 17.7 kB / 0.5049 GB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.1253, allocations: 8 kB / 0.5049 GB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.1253, allocations: 46.44 kB / 0.505 GB, free: 7.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1253, allocations: 0 / 0.505 GB, free: 7.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001664/0.1255, allocations: 45.58 kB / 0.505 GB, free: 7.605 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/0.1256, allocations: 81.36 kB / 0.5051 GB, free: 7.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.1257, allocations: 97.84 kB / 0.5052 GB, free: 7.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.1257, allocations: 25.7 kB / 0.5052 GB, free: 7.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.366e-05/0.1258, allocations: 84.14 kB / 0.5053 GB, free: 7.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.1258, allocations: 3.953 kB / 0.5053 GB, free: 7.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.871e-05/0.1258, allocations: 13.72 kB / 0.5053 GB, free: 7.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.126, allocations: 314.8 kB / 0.5056 GB, free: 6.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.366e-05/0.126, allocations: 0 / 0.5056 GB, free: 6.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.794e-05/0.126, allocations: 25.83 kB / 0.5056 GB, free: 6.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.549e-05/0.1261, allocations: 17.66 kB / 0.5057 GB, free: 6.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1261, allocations: 0 / 0.5057 GB, free: 6.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.717e-05/0.1262, allocations: 45.66 kB / 0.5057 GB, free: 6.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.1262, allocations: 7.938 kB / 0.5057 GB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1262, allocations: 0 / 0.5057 GB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.1262, allocations: 128 / 0.5057 GB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.1264, allocations: 39.91 kB / 0.5057 GB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.1282, allocations: 2.708 MB / 0.5084 GB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.665e-05/0.1283, allocations: 7.953 kB / 0.5084 GB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.1283, allocations: 0 / 0.5084 GB, free: 3.805 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): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.787e-05/0.1284, allocations: 121.7 kB / 0.5085 GB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.425e-05/0.1284, allocations: 7.922 kB / 0.5085 GB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.365e-05/0.1284, allocations: 7.219 kB / 0.5085 GB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1284, allocations: 0 / 0.5085 GB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1284, allocations: 4 kB / 0.5085 GB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.1284, allocations: 0 / 0.5085 GB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003191/0.1287, allocations: 189.6 kB / 0.5087 GB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.1288, allocations: 4 kB / 0.5087 GB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000161/0.1289, allocations: 27.98 kB / 0.5087 GB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1289, allocations: 7.938 kB / 0.5087 GB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-06/0.129, allocations: 0 / 0.5087 GB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001591/0.1305, allocations: 2.719 MB / 0.5114 GB, free: 396 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.1306, allocations: 0 / 0.5114 GB, free: 396 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.221e-05/0.1307, allocations: 74.05 kB / 0.5115 GB, free: 300 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/0.1307, allocations: 88.98 kB / 0.5116 GB, free: 192 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.891e-06/0.1307, allocations: 0 / 0.5116 GB, free: 192 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.073e-05/0.1307, allocations: 0 / 0.5116 GB, free: 192 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.654e-05/0.1308, allocations: 4 kB / 0.5116 GB, free: 188 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.1308, allocations: 4 kB / 0.5116 GB, free: 184 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.083e-05/0.1308, allocations: 79.27 kB / 0.5116 GB, free: 104 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1308, allocations: 3.938 kB / 0.5116 GB, free: 100 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002151/0.131, allocations: 4 kB / 0.5116 GB, free: 96 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003753/0.1314, allocations: 0.6133 MB / 0.5122 GB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005315/0.132, allocations: 36 kB / 0.5123 GB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.132, allocations: 0 / 0.5123 GB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003517/0.1323, allocations: 31.92 kB / 0.5123 GB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001523/0.1325, allocations: 5.562 kB / 0.5123 GB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004624/0.133, allocations: 136.3 kB / 0.5124 GB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.1333, allocations: 0.6844 MB / 0.5131 GB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.753e-05/0.1334, allocations: 20 kB / 0.5131 GB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.395e-05/0.1335, allocations: 27.39 kB / 0.5132 GB, free: 14.44 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1335, allocations: 0 / 0.5132 GB, free: 14.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.1541, allocations: 1.735 MB / 0.5149 GB, free: 12.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.272/8.426, allocations: 3.938 kB / 0.5149 GB, free: 12.77 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.VariablesTypes.Attributes.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.Attributes.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.Attributes.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.Attributes.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.VariablesTypes.Attributes_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_VariablesTypes_Attributes.fmu > HanserModelica_HanserModelica.VariablesTypes.Attributes.pipe 2>&1)