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.006828/0.006828, allocations: 101.7 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.336/1.336, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001607/0.001607, allocations: 196.4 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03382/0.03382, allocations: 8.81 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 79.86 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08712/0.0887, allocations: 51.57 MB / 0.5029 GB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer7over9): time 0.002251/0.09099, allocations: 1.25 MB / 0.5041 GB, free: 8.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.09278, allocations: 1.156 MB / 0.5053 GB, free: 7.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.224e-05/0.09283, allocations: 0 / 0.5053 GB, free: 7.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003856/0.09322, allocations: 75.69 kB / 0.5053 GB, free: 7.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009371/0.09419, allocations: 398.4 kB / 0.5057 GB, free: 7.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.721e-06/0.09421, allocations: 8 kB / 0.5057 GB, free: 7.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.09533, allocations: 0.7647 MB / 0.5065 GB, free: 6.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.989e-05/0.09538, allocations: 4 kB / 0.5065 GB, free: 6.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.208e-05/0.09541, allocations: 7.938 kB / 0.5065 GB, free: 6.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.646e-05/0.09545, allocations: 15.86 kB / 0.5065 GB, free: 6.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.496e-06/0.09547, allocations: 4 kB / 0.5065 GB, free: 6.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.09562, allocations: 47.91 kB / 0.5065 GB, free: 6.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.104e-05/0.09568, allocations: 15.92 kB / 0.5066 GB, free: 6.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.796e-05/0.09571, allocations: 15.88 kB / 0.5066 GB, free: 6.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.09588, allocations: 83.95 kB / 0.5067 GB, free: 6.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.09589, allocations: 4 kB / 0.5067 GB, free: 6.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.0959, allocations: 0 / 0.5067 GB, free: 6.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.09591, allocations: 0 / 0.5067 GB, free: 6.137 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.000358/0.09627, allocations: 371.1 kB / 0.507 GB, free: 5.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.09631, allocations: 8.031 kB / 0.507 GB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.388e-05/0.09636, allocations: 114 kB / 0.5071 GB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003857/0.09676, allocations: 112.1 kB / 0.5072 GB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.09721, allocations: 355.1 kB / 0.5076 GB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.407e-05/0.09727, allocations: 150.9 kB / 0.5077 GB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.5e-05/0.09733, allocations: 154.9 kB / 0.5079 GB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.83e-05/0.09739, allocations: 105.1 kB / 0.508 GB, free: 4.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.995e-05/0.09744, allocations: 79.28 kB / 0.508 GB, free: 4.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.366e-05/0.09749, allocations: 150.6 kB / 0.5082 GB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.106e-05/0.09754, allocations: 154.5 kB / 0.5083 GB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.836e-05/0.0976, allocations: 162.5 kB / 0.5085 GB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002844/0.09789, allocations: 457.9 kB / 0.5089 GB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.953e-05/0.09796, allocations: 165.1 kB / 0.5091 GB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.291e-05/0.09801, allocations: 84.14 kB / 0.5092 GB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/0.09804, allocations: 75.28 kB / 0.5092 GB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.09809, allocations: 117.7 kB / 0.5093 GB, free: 3.199 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.09809, allocations: 0 / 0.5093 GB, free: 3.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.003e-05/0.09818, allocations: 37.59 kB / 0.5094 GB, free: 3.156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.09823, allocations: 130.7 kB / 0.5095 GB, free: 3.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.09841, allocations: 154.2 kB / 0.5097 GB, free: 2.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.09843, allocations: 25.7 kB / 0.5097 GB, free: 2.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.044e-05/0.09849, allocations: 104.1 kB / 0.5098 GB, free: 2.719 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-06/0.0985, allocations: 4 kB / 0.5098 GB, free: 2.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.09853, allocations: 9.719 kB / 0.5098 GB, free: 2.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.09864, allocations: 322.8 kB / 0.5101 GB, free: 2.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.057e-06/0.09866, allocations: 0 / 0.5101 GB, free: 2.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.284e-06/0.09866, allocations: 0 / 0.5101 GB, free: 2.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.226e-05/0.09869, allocations: 79.22 kB / 0.5102 GB, free: 2.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.077e-05/0.09872, allocations: 75.28 kB / 0.5102 GB, free: 2.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.81e-05/0.09879, allocations: 45.47 kB / 0.5103 GB, free: 2.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.09883, allocations: 87.28 kB / 0.5104 GB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/0.09886, allocations: 75.28 kB / 0.5104 GB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.175e-05/0.09893, allocations: 154.5 kB / 0.5106 GB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.358e-05/0.09895, allocations: 75.28 kB / 0.5107 GB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.729e-05/0.09902, allocations: 166.6 kB / 0.5108 GB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.372e-05/0.09909, allocations: 79.22 kB / 0.5109 GB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.207e-05/0.09912, allocations: 79.28 kB / 0.511 GB, free: 1.465 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.0001406/0.09927, allocations: 276.3 kB / 0.5112 GB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/0.09933, allocations: 120.7 kB / 0.5113 GB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.585e-05/0.09939, allocations: 108.9 kB / 0.5115 GB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.907e-05/0.09946, allocations: 184.2 kB / 0.5116 GB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.893e-05/0.09951, allocations: 184.2 kB / 0.5118 GB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.785e-05/0.09958, allocations: 180.3 kB / 0.512 GB, free: 392 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/0.09981, allocations: 421.1 kB / 0.5124 GB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.02e-05/0.09986, allocations: 105 kB / 0.5125 GB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.446e-05/0.0999, allocations: 108.9 kB / 0.5126 GB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.983e-05/0.09997, allocations: 180.3 kB / 0.5128 GB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-05/0.1, allocations: 180.3 kB / 0.5129 GB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.098e-05/0.1001, allocations: 184.2 kB / 0.5131 GB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.456e-05/0.1002, allocations: 184.2 kB / 0.5133 GB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001281/0.1003, allocations: 308.1 kB / 0.5136 GB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.989e-05/0.1004, allocations: 193.9 kB / 0.5138 GB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.671e-05/0.1005, allocations: 188.2 kB / 0.5139 GB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.29e-05/0.1005, allocations: 105 kB / 0.514 GB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.924e-05/0.1006, allocations: 184.2 kB / 0.5142 GB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.1006, allocations: 101 kB / 0.5143 GB, free: 13.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.212e-05/0.1007, allocations: 128 kB / 0.5144 GB, free: 13.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1007, allocations: 4 kB / 0.5144 GB, free: 13.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002412/0.101, allocations: 4 kB / 0.5144 GB, free: 13.68 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.0003425/0.1013, allocations: 0.8164 MB / 0.5152 GB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.51e-05/0.1014, allocations: 0 / 0.5152 GB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1014, allocations: 4 kB / 0.5152 GB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.453e-06/0.1014, allocations: 0 / 0.5152 GB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004207/0.1018, allocations: 465.1 kB / 0.5157 GB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.1031, allocations: 1.798 MB / 0.5174 GB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.1034, allocations: 0.7002 MB / 0.5181 GB, free: 9.773 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.382e-05/0.1035, allocations: 4 kB / 0.5181 GB, free: 9.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.866e-05/0.1035, allocations: 19.44 kB / 0.5181 GB, free: 9.75 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1035, allocations: 0 / 0.5181 GB, free: 9.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01834/0.1219, allocations: 1.799 MB / 0.5199 GB, free: 8.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.639/7.761, allocations: 4 kB / 0.5199 GB, free: 8.031 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)