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.005482/0.005482, allocations: 95.64 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.376/1.376, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001505/0.001504, allocations: 188.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03608/0.03608, allocations: 8.805 MB / 348.7 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002344/0.002345, allocations: 87.86 kB / 463.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09687/0.09923, allocations: 51.56 MB / 0.5029 GB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002362/0.1016, allocations: 1.381 MB / 0.5042 GB, free: 8.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.1029, allocations: 0.8643 MB / 0.5051 GB, free: 7.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.94e-05/0.1029, allocations: 4 kB / 0.5051 GB, free: 7.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002614/0.1032, allocations: 87.61 kB / 0.5052 GB, free: 7.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.627e-05/0.1033, allocations: 15.91 kB / 0.5052 GB, free: 7.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008175/0.1041, allocations: 442.1 kB / 0.5056 GB, free: 7.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.1043, allocations: 47.72 kB / 0.5057 GB, free: 7.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.614e-05/0.1043, allocations: 16.27 kB / 0.5057 GB, free: 7.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.328e-05/0.1044, allocations: 8 kB / 0.5057 GB, free: 7.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.301e-05/0.1044, allocations: 15.88 kB / 0.5057 GB, free: 7.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.1045, allocations: 0 / 0.5057 GB, free: 7.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002389/0.1047, allocations: 119.8 kB / 0.5058 GB, free: 7.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.1047, allocations: 4 kB / 0.5058 GB, free: 7.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.006e-05/0.1048, allocations: 19.86 kB / 0.5058 GB, free: 7.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.105, allocations: 131.5 kB / 0.506 GB, free: 6.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.105, allocations: 3.938 kB / 0.506 GB, free: 6.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.105, allocations: 8 kB / 0.506 GB, free: 6.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.105, allocations: 0 / 0.506 GB, free: 6.949 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.0008864/0.1059, allocations: 427 kB / 0.5064 GB, free: 6.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.106, allocations: 8.031 kB / 0.5064 GB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.78e-05/0.106, allocations: 30.75 kB / 0.5064 GB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.354e-05/0.106, allocations: 4.938 kB / 0.5064 GB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.1062, allocations: 168.3 kB / 0.5066 GB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.1062, allocations: 12.38 kB / 0.5066 GB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-06/0.1062, allocations: 384 / 0.5066 GB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001304/0.1064, allocations: 57.8 kB / 0.5067 GB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1064, allocations: 0 / 0.5067 GB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.1064, allocations: 4 kB / 0.5067 GB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1064, allocations: 0 / 0.5067 GB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.603e-05/0.1065, allocations: 43.92 kB / 0.5067 GB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002036/0.1067, allocations: 181.7 kB / 0.5069 GB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.1069, allocations: 70.56 kB / 0.5069 GB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.395e-05/0.1069, allocations: 24.98 kB / 0.507 GB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.107, allocations: 4 kB / 0.507 GB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.107, allocations: 38.48 kB / 0.507 GB, free: 5.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.107, allocations: 0 / 0.507 GB, free: 5.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002319/0.1072, allocations: 93.62 kB / 0.5071 GB, free: 5.629 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.1073, allocations: 59.34 kB / 0.5071 GB, free: 5.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.065e-05/0.1074, allocations: 105.8 kB / 0.5072 GB, free: 5.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.1074, allocations: 33.7 kB / 0.5073 GB, free: 5.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.889e-05/0.1074, allocations: 80.14 kB / 0.5074 GB, free: 5.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.1075, allocations: 23.8 kB / 0.5074 GB, free: 5.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.884e-05/0.1075, allocations: 21.7 kB / 0.5074 GB, free: 5.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1077, allocations: 310.8 kB / 0.5077 GB, free: 4.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.095e-05/0.1077, allocations: 16 kB / 0.5077 GB, free: 4.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.875e-05/0.1078, allocations: 23.98 kB / 0.5077 GB, free: 4.922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.933e-05/0.1078, allocations: 44.86 kB / 0.5078 GB, free: 4.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1079, allocations: 4 kB / 0.5078 GB, free: 4.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000136/0.108, allocations: 89.52 kB / 0.5079 GB, free: 4.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.108, allocations: 8 kB / 0.5079 GB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.307e-06/0.108, allocations: 0 / 0.5079 GB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.108, allocations: 0 / 0.5079 GB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.794e-05/0.1081, allocations: 12.67 kB / 0.5079 GB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1082, allocations: 0 / 0.5079 GB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.032e-05/0.1082, allocations: 0 / 0.5079 GB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.1082, allocations: 7.938 kB / 0.5079 GB, free: 4.75 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.392e-05/0.1083, allocations: 117.8 kB / 0.508 GB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/0.1083, allocations: 11.89 kB / 0.508 GB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002004/0.1085, allocations: 102 kB / 0.5081 GB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.1086, allocations: 7.984 kB / 0.5081 GB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1086, allocations: 0 / 0.5081 GB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1086, allocations: 3.984 kB / 0.5081 GB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.1087, allocations: 185.6 kB / 0.5083 GB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1088, allocations: 0 / 0.5083 GB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.25e-05/0.1088, allocations: 15.94 kB / 0.5083 GB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1089, allocations: 0 / 0.5083 GB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-06/0.1089, allocations: 4 kB / 0.5083 GB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1089, allocations: 0 / 0.5083 GB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1089, allocations: 0 / 0.5083 GB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001693/0.1091, allocations: 121 kB / 0.5084 GB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.971e-05/0.1091, allocations: 88.92 kB / 0.5085 GB, free: 4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.1091, allocations: 4 kB / 0.5085 GB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.581e-05/0.1092, allocations: 4 kB / 0.5085 GB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.286e-05/0.1092, allocations: 7.984 kB / 0.5085 GB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.1092, allocations: 4 kB / 0.5085 GB, free: 3.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.287e-05/0.1093, allocations: 79.28 kB / 0.5086 GB, free: 3.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1093, allocations: 0 / 0.5086 GB, free: 3.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001896/0.1095, allocations: 16 kB / 0.5086 GB, free: 3.887 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.0005239/0.11, allocations: 0.671 MB / 0.5093 GB, free: 3.188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.1102, allocations: 51.98 kB / 0.5093 GB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1102, allocations: 0 / 0.5093 GB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.646e-05/0.1102, allocations: 31.92 kB / 0.5094 GB, free: 3.105 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.1104, allocations: 8 kB / 0.5094 GB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004381/0.1108, allocations: 198 kB / 0.5096 GB, free: 2.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.1112, allocations: 0.6922 MB / 0.5102 GB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.986e-05/0.1112, allocations: 0 / 0.5102 GB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.943e-05/0.1112, allocations: 15.44 kB / 0.5103 GB, free: 2.129 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1112, allocations: 0 / 0.5103 GB, free: 2.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.1342, allocations: 1.934 MB / 0.5121 GB, free: 280 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.551/7.685, allocations: 9.812 kB / 0.5122 GB, free: 276 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)