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.005894/0.005894, allocations: 101.9 kB / 15.73 MB, free: 6.469 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.497/1.497, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001472/0.001472, allocations: 180.5 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.03501/0.03501, allocations: 8.796 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 75.89 kB / 463.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1074, allocations: 51.56 MB / 0.5029 GB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002365/0.1098, allocations: 1.258 MB / 0.5041 GB, free: 8.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 6.347e-05/0.1099, allocations: 4 kB / 0.5041 GB, free: 8.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.41e-05/0.11, allocations: 0 / 0.5041 GB, free: 8.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.737e-05/0.11, allocations: 7.938 kB / 0.5041 GB, free: 8.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.415e-05/0.1101, allocations: 3.984 kB / 0.5041 GB, free: 8.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.67e-05/0.1102, allocations: 4 kB / 0.5041 GB, free: 8.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.899e-05/0.1102, allocations: 11.92 kB / 0.5042 GB, free: 8.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.903e-05/0.1103, allocations: 4 kB / 0.5042 GB, free: 8.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.085e-05/0.1104, allocations: 7.938 kB / 0.5042 GB, free: 8.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.963e-05/0.1104, allocations: 0 / 0.5042 GB, free: 8.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.15e-05/0.1104, allocations: 0 / 0.5042 GB, free: 8.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.609e-06/0.1104, allocations: 0 / 0.5042 GB, free: 8.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.751e-05/0.1104, allocations: 0 / 0.5042 GB, free: 8.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.556e-05/0.1105, allocations: 7.938 kB / 0.5042 GB, free: 8.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.415e-05/0.1105, allocations: 11.92 kB / 0.5042 GB, free: 8.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1106, allocations: 8 kB / 0.5042 GB, free: 8.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1106, allocations: 0 / 0.5042 GB, free: 8.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.1106, allocations: 0 / 0.5042 GB, free: 8.801 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.0003978/0.111, allocations: 315.5 kB / 0.5045 GB, free: 8.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/0.1111, allocations: 8.031 kB / 0.5045 GB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.506e-05/0.1111, allocations: 34.75 kB / 0.5045 GB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.435e-05/0.1111, allocations: 8.875 kB / 0.5045 GB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.1113, allocations: 164.6 kB / 0.5047 GB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.1113, allocations: 4.359 kB / 0.5047 GB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.1113, allocations: 8.312 kB / 0.5047 GB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.247e-05/0.1114, allocations: 47.97 kB / 0.5048 GB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1114, allocations: 3.938 kB / 0.5048 GB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.063e-06/0.1114, allocations: 0 / 0.5048 GB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1115, allocations: 0 / 0.5048 GB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.889e-05/0.1115, allocations: 4 kB / 0.5048 GB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003406/0.1118, allocations: 479.6 kB / 0.5052 GB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.002e-05/0.1119, allocations: 169.1 kB / 0.5054 GB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.204e-05/0.112, allocations: 80.14 kB / 0.5055 GB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.112, allocations: 75.28 kB / 0.5055 GB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.112, allocations: 113.8 kB / 0.5056 GB, free: 7.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.082e-06/0.112, allocations: 0 / 0.5056 GB, free: 7.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.951e-05/0.1121, allocations: 33.62 kB / 0.5057 GB, free: 7.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.1122, allocations: 126.7 kB / 0.5058 GB, free: 6.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.82e-05/0.1123, allocations: 109.8 kB / 0.5059 GB, free: 6.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.1123, allocations: 25.7 kB / 0.5059 GB, free: 6.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.881e-05/0.1124, allocations: 88.12 kB / 0.506 GB, free: 6.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-06/0.1124, allocations: 0 / 0.506 GB, free: 6.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.1124, allocations: 17.72 kB / 0.506 GB, free: 6.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.1125, allocations: 310.8 kB / 0.5063 GB, free: 6.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.245e-05/0.1125, allocations: 4 kB / 0.5063 GB, free: 6.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.533e-05/0.1126, allocations: 13.72 kB / 0.5063 GB, free: 6.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.39e-05/0.1126, allocations: 21.59 kB / 0.5064 GB, free: 6.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.1126, allocations: 3.984 kB / 0.5064 GB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001072/0.1127, allocations: 49.67 kB / 0.5064 GB, free: 6.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1127, allocations: 11.88 kB / 0.5064 GB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.1128, allocations: 0 / 0.5064 GB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1128, allocations: 0 / 0.5064 GB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.66e-05/0.1128, allocations: 4 kB / 0.5064 GB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.1128, allocations: 0 / 0.5064 GB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.182e-05/0.1129, allocations: 0 / 0.5064 GB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-06/0.1129, allocations: 4 kB / 0.5064 GB, free: 6.25 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 9.671e-05/0.113, allocations: 201 kB / 0.5066 GB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.736e-05/0.113, allocations: 109 kB / 0.5067 GB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.557e-05/0.1131, allocations: 108 kB / 0.5068 GB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.049e-05/0.1132, allocations: 176.3 kB / 0.507 GB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-05/0.1132, allocations: 180.2 kB / 0.5072 GB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.755e-05/0.1133, allocations: 184.2 kB / 0.5073 GB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.1135, allocations: 409.2 kB / 0.5077 GB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.549e-05/0.1136, allocations: 116.8 kB / 0.5078 GB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.691e-05/0.1136, allocations: 101 kB / 0.5079 GB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-05/0.1137, allocations: 180.2 kB / 0.5081 GB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-05/0.1138, allocations: 176.3 kB / 0.5083 GB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.049e-05/0.1138, allocations: 188.3 kB / 0.5085 GB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.202e-05/0.1139, allocations: 180.2 kB / 0.5086 GB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001321/0.114, allocations: 311.9 kB / 0.5089 GB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.569e-05/0.1141, allocations: 178.1 kB / 0.5091 GB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.802e-05/0.1142, allocations: 188.3 kB / 0.5093 GB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.65e-05/0.1143, allocations: 108.9 kB / 0.5094 GB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.318e-05/0.1144, allocations: 176.3 kB / 0.5095 GB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.551e-05/0.1144, allocations: 104.9 kB / 0.5096 GB, free: 2.723 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.651e-05/0.1145, allocations: 87.53 kB / 0.5097 GB, free: 2.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1145, allocations: 0 / 0.5097 GB, free: 2.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000222/0.1147, allocations: 4 kB / 0.5097 GB, free: 2.633 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.0003891/0.1151, allocations: 0.8086 MB / 0.5105 GB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.749e-05/0.1152, allocations: 7.938 kB / 0.5105 GB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1152, allocations: 0 / 0.5105 GB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.1152, allocations: 0 / 0.5105 GB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.1155, allocations: 469.4 kB / 0.511 GB, free: 1.324 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009318/0.1165, allocations: 1.284 MB / 0.5122 GB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.1167, allocations: 0.6766 MB / 0.5129 GB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.854e-05/0.1168, allocations: 0 / 0.5129 GB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.872e-05/0.1168, allocations: 7.438 kB / 0.5129 GB, free: 15.24 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1168, allocations: 4.031 kB / 0.5129 GB, free: 15.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01507/0.1319, allocations: 0.9644 MB / 0.5138 GB, free: 14.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.44/7.572, allocations: 7.125 kB / 0.5139 GB, free: 14.33 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Classes_MixedDeclaration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Classes_MixedDeclaration.fmu > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)