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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0009772/0.0009772, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.33/1.33, allocations: 223.2 MB / 238.9 MB, free: 5.645 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.001172/0.001172, allocations: 189 kB / 290.2 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03197/0.03197, allocations: 8.785 MB / 350.1 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003995/0.0003996, allocations: 13.81 kB / 413.2 MB, free: 42.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1025, allocations: 52.56 MB / 465.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.001348/0.1039, allocations: 0.9822 MB / 466.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 5.134e-05/0.104, allocations: 7.938 kB / 466.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.285e-05/0.104, allocations: 0 / 466.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.059e-05/0.1041, allocations: 4 kB / 466.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.623e-05/0.1042, allocations: 3.984 kB / 466.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.242e-05/0.1042, allocations: 0 / 466.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.027e-05/0.1042, allocations: 4 kB / 466.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.776e-05/0.1043, allocations: 8 kB / 466.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.335e-05/0.1043, allocations: 3.984 kB / 466.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.49e-05/0.1044, allocations: 7.938 kB / 466.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.1044, allocations: 0 / 466.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.621e-06/0.1044, allocations: 0 / 466.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.03e-05/0.1044, allocations: 0 / 466.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.437e-05/0.1045, allocations: 25.7 kB / 466.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.315e-05/0.1045, allocations: 7.984 kB / 466.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1045, allocations: 0 / 466.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1045, allocations: 0 / 466.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.1045, allocations: 4 kB / 466.8 MB, free: 12.39 MB / 302.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.000329/0.1049, allocations: 327.5 kB / 467.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.1049, allocations: 8.031 kB / 467.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.966e-05/0.105, allocations: 30.56 kB / 467.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.553e-05/0.105, allocations: 7.953 kB / 467.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.1052, allocations: 167 kB / 467.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-06/0.1052, allocations: 0 / 467.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.1052, allocations: 0 / 467.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.779e-05/0.1053, allocations: 47.42 kB / 467.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1053, allocations: 0 / 467.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.134e-06/0.1053, allocations: 0 / 467.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.1053, allocations: 7.953 kB / 467.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.857e-05/0.1053, allocations: 3.938 kB / 467.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003579/0.1057, allocations: 471.7 kB / 467.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.528e-05/0.1058, allocations: 177.1 kB / 468 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.1058, allocations: 75.28 kB / 468.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.1059, allocations: 109.8 kB / 468.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 9.22e-07/0.1059, allocations: 0 / 468.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.879e-05/0.106, allocations: 33.66 kB / 468.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.435e-05/0.1061, allocations: 130.7 kB / 468.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.548e-05/0.1062, allocations: 105.8 kB / 468.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.1062, allocations: 25.7 kB / 468.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.892e-05/0.1062, allocations: 92.05 kB / 468.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-06/0.1063, allocations: 0 / 468.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-06/0.1063, allocations: 0 / 468.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1064, allocations: 310.8 kB / 468.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/0.1064, allocations: 4 kB / 468.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.112e-05/0.1064, allocations: 21.7 kB / 468.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.132e-05/0.1065, allocations: 7.938 kB / 468.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1065, allocations: 0 / 468.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001043/0.1066, allocations: 41.61 kB / 468.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.1066, allocations: 4 kB / 468.9 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.1066, allocations: 4 kB / 468.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.1066, allocations: 3.953 kB / 469 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.695e-05/0.1067, allocations: 8.125 kB / 469 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.1067, allocations: 3.938 kB / 469 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.149e-05/0.1067, allocations: 7.922 kB / 469 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.1067, allocations: 0 / 469 MB, free: 9.957 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.913e-05/0.1068, allocations: 185.1 kB / 469.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.643e-05/0.1069, allocations: 102.8 kB / 469.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.436e-05/0.107, allocations: 112.1 kB / 469.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.5e-05/0.107, allocations: 188.2 kB / 469.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.704e-05/0.1071, allocations: 180.2 kB / 469.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.277e-05/0.1072, allocations: 180.2 kB / 469.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.1074, allocations: 405.2 kB / 470.3 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.718e-05/0.1074, allocations: 104.9 kB / 470.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.476e-05/0.1075, allocations: 101 kB / 470.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.379e-05/0.1076, allocations: 184.3 kB / 470.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.595e-05/0.1077, allocations: 180.2 kB / 470.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-05/0.1077, allocations: 176.3 kB / 471 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.282e-05/0.1078, allocations: 192.1 kB / 471.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.108, allocations: 303.9 kB / 471.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.829e-05/0.1081, allocations: 186.3 kB / 471.7 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.224e-05/0.1081, allocations: 184.2 kB / 471.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.45e-05/0.1082, allocations: 109 kB / 472 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.06e-05/0.1083, allocations: 180.3 kB / 472.2 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.1084, allocations: 108.9 kB / 472.3 MB, free: 6.445 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.068e-05/0.1084, allocations: 91.27 kB / 472.3 MB, free: 6.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1084, allocations: 0 / 472.3 MB, free: 6.355 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000238/0.1087, allocations: 0 / 472.3 MB, free: 6.355 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004246/0.1091, allocations: 0.8013 MB / 473.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.971e-05/0.1092, allocations: 8 kB / 473.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1092, allocations: 0 / 473.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.939e-06/0.1092, allocations: 7.938 kB / 473.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.1096, allocations: 0.5203 MB / 473.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006788/0.1103, allocations: 0.5547 MB / 474.2 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.1106, allocations: 0.6848 MB / 474.9 MB, free: 3.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.029e-05/0.1106, allocations: 0 / 474.9 MB, free: 3.668 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.794e-05/0.1106, allocations: 7.438 kB / 474.9 MB, free: 3.66 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1106, allocations: 4 kB / 474.9 MB, free: 3.656 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01021/0.1208, allocations: 0.7904 MB / 475.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/0.1211, allocations: 178.5 kB / 475.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.468/1.589, allocations: 0 / 475.9 MB, free: 2.723 MB / 302.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/linux/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) Environment - environmentSimulation: