Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.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.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",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.006769/0.006769, allocations: 99 kB / 15.73 MB, free: 6.035 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.396/1.396, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.00146/0.001461, allocations: 191.4 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.03482/0.03482, allocations: 8.797 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 71.89 kB / 463.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1188, allocations: 51.58 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002732/0.1216, allocations: 1.379 MB / 0.5042 GB, free: 8.613 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.1231, allocations: 0.8643 MB / 0.5051 GB, free: 7.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.549e-05/0.1232, allocations: 0 / 0.5051 GB, free: 7.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003395/0.1236, allocations: 87.61 kB / 0.5052 GB, free: 7.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.371e-05/0.1237, allocations: 15.92 kB / 0.5052 GB, free: 7.641 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009124/0.1246, allocations: 454 kB / 0.5056 GB, free: 7.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001633/0.1248, allocations: 43.78 kB / 0.5057 GB, free: 7.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.054e-05/0.1248, allocations: 4 kB / 0.5057 GB, free: 7.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.826e-05/0.1249, allocations: 15.98 kB / 0.5057 GB, free: 7.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.212e-05/0.125, allocations: 7.938 kB / 0.5057 GB, free: 7.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.125, allocations: 4 kB / 0.5057 GB, free: 7.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002902/0.1253, allocations: 119.8 kB / 0.5058 GB, free: 7.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.289e-05/0.1253, allocations: 11.94 kB / 0.5058 GB, free: 6.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.72e-05/0.1253, allocations: 7.938 kB / 0.5058 GB, free: 6.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002767/0.1256, allocations: 135.7 kB / 0.506 GB, free: 6.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1256, allocations: 3.984 kB / 0.506 GB, free: 6.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1257, allocations: 0 / 0.506 GB, free: 6.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.1257, allocations: 0 / 0.506 GB, free: 6.848 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.001037/0.1267, allocations: 419.6 kB / 0.5064 GB, free: 6.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1268, allocations: 12.03 kB / 0.5064 GB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.162e-05/0.1268, allocations: 38.73 kB / 0.5064 GB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.835e-05/0.1269, allocations: 4.844 kB / 0.5064 GB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.127, allocations: 172.3 kB / 0.5066 GB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.127, allocations: 384 / 0.5066 GB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.264e-05/0.127, allocations: 4.375 kB / 0.5066 GB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.1272, allocations: 61.8 kB / 0.5066 GB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1272, allocations: 0 / 0.5066 GB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.1272, allocations: 0 / 0.5066 GB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1272, allocations: 0 / 0.5066 GB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.02e-05/0.1273, allocations: 43.92 kB / 0.5067 GB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003002/0.1276, allocations: 181.6 kB / 0.5069 GB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.1278, allocations: 66.56 kB / 0.5069 GB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.5e-05/0.1279, allocations: 24.98 kB / 0.5069 GB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.1279, allocations: 0 / 0.5069 GB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.128, allocations: 42.5 kB / 0.507 GB, free: 5.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.128, allocations: 0 / 0.507 GB, free: 5.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002418/0.1283, allocations: 101.8 kB / 0.5071 GB, free: 5.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.1283, allocations: 55.34 kB / 0.5071 GB, free: 5.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.613e-05/0.1284, allocations: 109.9 kB / 0.5072 GB, free: 5.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.1285, allocations: 25.7 kB / 0.5073 GB, free: 5.309 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.456e-05/0.1285, allocations: 88.12 kB / 0.5073 GB, free: 5.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.215e-05/0.1286, allocations: 23.66 kB / 0.5074 GB, free: 5.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.982e-05/0.1286, allocations: 13.72 kB / 0.5074 GB, free: 5.176 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1288, allocations: 318.8 kB / 0.5077 GB, free: 4.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.139e-05/0.1288, allocations: 24 kB / 0.5077 GB, free: 4.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.75e-05/0.1289, allocations: 19.98 kB / 0.5077 GB, free: 4.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.53e-05/0.129, allocations: 48.86 kB / 0.5078 GB, free: 4.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.129, allocations: 0 / 0.5078 GB, free: 4.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001524/0.1291, allocations: 81.56 kB / 0.5079 GB, free: 4.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1292, allocations: 5.406 kB / 0.5079 GB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1292, allocations: 0 / 0.5079 GB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1292, allocations: 0 / 0.5079 GB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.1293, allocations: 8 kB / 0.5079 GB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.1293, allocations: 4 kB / 0.5079 GB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.053e-05/0.1294, allocations: 8 kB / 0.5079 GB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.1294, allocations: 0 / 0.5079 GB, free: 4.652 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 (6): * Single equations (assignments): 6 * 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.044e-05/0.1295, allocations: 117.8 kB / 0.508 GB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.644e-05/0.1295, allocations: 7.844 kB / 0.508 GB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002145/0.1297, allocations: 102 kB / 0.5081 GB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1297, allocations: 4 kB / 0.5081 GB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1297, allocations: 0 / 0.5081 GB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1298, allocations: 0 / 0.5081 GB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.1299, allocations: 193.6 kB / 0.5083 GB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1299, allocations: 4.438 kB / 0.5083 GB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.833e-05/0.13, allocations: 11.94 kB / 0.5083 GB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.13, allocations: 0 / 0.5083 GB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.1301, allocations: 4 kB / 0.5083 GB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1301, allocations: 4 kB / 0.5083 GB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1301, allocations: 0 / 0.5083 GB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001943/0.1303, allocations: 117 kB / 0.5084 GB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.651e-05/0.1303, allocations: 88.98 kB / 0.5085 GB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.1304, allocations: 7.938 kB / 0.5085 GB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.108e-05/0.1304, allocations: 3.984 kB / 0.5085 GB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.81e-05/0.1304, allocations: 4 kB / 0.5085 GB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.1305, allocations: 4 kB / 0.5085 GB, free: 3.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.868e-05/0.1305, allocations: 87.27 kB / 0.5086 GB, free: 3.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1305, allocations: 0 / 0.5086 GB, free: 3.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000212/0.1307, allocations: 16 kB / 0.5086 GB, free: 3.785 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 (8): * Single equations (assignments): 8 * 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.0005987/0.1313, allocations: 0.6669 MB / 0.5093 GB, free: 3.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001646/0.1315, allocations: 51.98 kB / 0.5093 GB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1315, allocations: 0 / 0.5093 GB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.889e-05/0.1316, allocations: 39.92 kB / 0.5094 GB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001587/0.1317, allocations: 3.984 kB / 0.5094 GB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004791/0.1322, allocations: 194.5 kB / 0.5096 GB, free: 2.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.1326, allocations: 0.6844 MB / 0.5102 GB, free: 2.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.925e-05/0.1327, allocations: 11.98 kB / 0.5102 GB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.361e-05/0.1327, allocations: 15.44 kB / 0.5102 GB, free: 2.027 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1328, allocations: 0 / 0.5102 GB, free: 2.027 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.1535, allocations: 1.956 MB / 0.5122 GB, free: 156 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.538/7.691, allocations: 4.062 kB / 0.5122 GB, free: 152 kB / 350.1 MB (rm -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation.fmu > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1)