Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.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.Machines.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",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.005215/0.005215, allocations: 106 kB / 15.74 MB, free: 6.02 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.34/1.34, allocations: 222.9 MB / 239.4 MB, free: 4.512 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: 192.5 kB / 289.7 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03583/0.03583, allocations: 8.794 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002223/0.002223, allocations: 75.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.0932, allocations: 51.57 MB / 0.5029 GB, free: 9.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer7over9): time 0.002325/0.09556, allocations: 1.252 MB / 0.5041 GB, free: 8.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.09731, allocations: 1.156 MB / 0.5053 GB, free: 7.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.632e-05/0.09737, allocations: 4 kB / 0.5053 GB, free: 7.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004127/0.09781, allocations: 83.91 kB / 0.5053 GB, free: 7.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009252/0.09874, allocations: 394.2 kB / 0.5057 GB, free: 7.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.168e-06/0.09876, allocations: 0 / 0.5057 GB, free: 7.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001171/0.09994, allocations: 0.7608 MB / 0.5065 GB, free: 6.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.31e-05/0.09999, allocations: 11.97 kB / 0.5065 GB, free: 6.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.356e-05/0.1, allocations: 11.94 kB / 0.5065 GB, free: 6.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.813e-05/0.1001, allocations: 19.86 kB / 0.5065 GB, free: 6.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.227e-06/0.1001, allocations: 0 / 0.5065 GB, free: 6.289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.1002, allocations: 35.97 kB / 0.5065 GB, free: 6.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.129e-05/0.1003, allocations: 23.92 kB / 0.5066 GB, free: 6.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.912e-05/0.1003, allocations: 15.88 kB / 0.5066 GB, free: 6.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.1005, allocations: 83.55 kB / 0.5067 GB, free: 6.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1005, allocations: 0 / 0.5067 GB, free: 6.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1005, allocations: 3.938 kB / 0.5067 GB, free: 6.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1005, allocations: 0 / 0.5067 GB, free: 6.129 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003814/0.1009, allocations: 383 kB / 0.507 GB, free: 5.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.1009, allocations: 8.031 kB / 0.507 GB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.188e-05/0.101, allocations: 110 kB / 0.5071 GB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003748/0.1014, allocations: 108.1 kB / 0.5072 GB, free: 5.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004554/0.1019, allocations: 359.3 kB / 0.5076 GB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.376e-05/0.1019, allocations: 150.9 kB / 0.5077 GB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.935e-05/0.102, allocations: 158.9 kB / 0.5079 GB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.818e-05/0.1021, allocations: 105.1 kB / 0.508 GB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-05/0.1021, allocations: 79.28 kB / 0.5081 GB, free: 4.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-05/0.1022, allocations: 150.6 kB / 0.5082 GB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.458e-05/0.1022, allocations: 150.6 kB / 0.5083 GB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.539e-05/0.1023, allocations: 154.5 kB / 0.5085 GB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000314/0.1026, allocations: 465.9 kB / 0.5089 GB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.453e-05/0.1027, allocations: 169.1 kB / 0.5091 GB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.606e-05/0.1028, allocations: 80.14 kB / 0.5092 GB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.1028, allocations: 79.28 kB / 0.5092 GB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.092e-05/0.1029, allocations: 109.8 kB / 0.5093 GB, free: 3.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.173e-06/0.1029, allocations: 0 / 0.5093 GB, free: 3.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.302e-05/0.1029, allocations: 45.55 kB / 0.5094 GB, free: 3.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/0.103, allocations: 130.7 kB / 0.5095 GB, free: 2.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.1032, allocations: 158.2 kB / 0.5097 GB, free: 2.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.1032, allocations: 25.7 kB / 0.5097 GB, free: 2.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.029e-05/0.1033, allocations: 96.14 kB / 0.5098 GB, free: 2.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.683e-06/0.1033, allocations: 0 / 0.5098 GB, free: 2.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-05/0.1033, allocations: 13.7 kB / 0.5098 GB, free: 2.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1034, allocations: 318.8 kB / 0.5101 GB, free: 2.363 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.969e-06/0.1035, allocations: 4 kB / 0.5101 GB, free: 2.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.906e-06/0.1035, allocations: 0 / 0.5101 GB, free: 2.359 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.666e-05/0.1035, allocations: 75.28 kB / 0.5102 GB, free: 2.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.942e-05/0.1035, allocations: 79.28 kB / 0.5103 GB, free: 2.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.175e-05/0.1036, allocations: 45.52 kB / 0.5103 GB, free: 2.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.391e-05/0.1037, allocations: 84.84 kB / 0.5104 GB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.359e-05/0.1037, allocations: 75.28 kB / 0.5104 GB, free: 2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.572e-05/0.1038, allocations: 158.6 kB / 0.5106 GB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.484e-05/0.1038, allocations: 79.22 kB / 0.5107 GB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-05/0.1039, allocations: 154.6 kB / 0.5108 GB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.584e-05/0.104, allocations: 79.22 kB / 0.5109 GB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.257e-05/0.104, allocations: 79.28 kB / 0.511 GB, free: 1.457 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 (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 prepare postOptimizeDAE: time 0.0001433/0.1041, allocations: 272.3 kB / 0.5112 GB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.579e-05/0.1042, allocations: 124.8 kB / 0.5114 GB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.119e-05/0.1043, allocations: 116.8 kB / 0.5115 GB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.039e-05/0.1044, allocations: 180.3 kB / 0.5116 GB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.29e-05/0.1045, allocations: 184.1 kB / 0.5118 GB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.101e-05/0.1046, allocations: 180.2 kB / 0.512 GB, free: 380 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002915/0.1049, allocations: 425.2 kB / 0.5124 GB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.291e-05/0.1049, allocations: 101 kB / 0.5125 GB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-05/0.105, allocations: 108.9 kB / 0.5126 GB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.858e-05/0.105, allocations: 188.2 kB / 0.5128 GB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.528e-05/0.1051, allocations: 176.3 kB / 0.5129 GB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.886e-05/0.1052, allocations: 184.2 kB / 0.5131 GB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-05/0.1053, allocations: 180.3 kB / 0.5133 GB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001647/0.1054, allocations: 320.1 kB / 0.5136 GB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.859e-05/0.1055, allocations: 190 kB / 0.5138 GB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.805e-05/0.1056, allocations: 180.2 kB / 0.5139 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.988e-05/0.1057, allocations: 109 kB / 0.514 GB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/0.1058, allocations: 180.3 kB / 0.5142 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.403e-05/0.1059, allocations: 108.9 kB / 0.5143 GB, free: 13.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.884e-05/0.106, allocations: 124.1 kB / 0.5144 GB, free: 13.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.106, allocations: 0 / 0.5144 GB, free: 13.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002718/0.1062, allocations: 4 kB / 0.5144 GB, free: 13.67 MB / 366.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.0004337/0.1067, allocations: 0.8165 MB / 0.5152 GB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.18e-05/0.1067, allocations: 3.938 kB / 0.5152 GB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1067, allocations: 0 / 0.5152 GB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.537e-06/0.1067, allocations: 4 kB / 0.5152 GB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004748/0.1072, allocations: 471.7 kB / 0.5157 GB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.1086, allocations: 1.806 MB / 0.5175 GB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.1089, allocations: 0.6924 MB / 0.5181 GB, free: 9.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.835e-05/0.109, allocations: 7.984 kB / 0.5181 GB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.907e-05/0.109, allocations: 19.44 kB / 0.5182 GB, free: 9.723 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.109, allocations: 0 / 0.5182 GB, free: 9.723 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.1311, allocations: 1.78 MB / 0.5199 GB, free: 8.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/7.785, allocations: 6.344 kB / 0.5199 GB, free: 8.02 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe 2>&1)