Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.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.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",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.004789/0.004789, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.359/1.359, 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.001492/0.001492, allocations: 188.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.03568/0.03568, allocations: 8.794 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002209/0.002209, allocations: 83.88 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08915/0.09137, allocations: 51.55 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestSingleLayer12over12): time 0.002161/0.09356, allocations: 1.254 MB / 0.5041 GB, free: 8.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.09535, allocations: 1.156 MB / 0.5052 GB, free: 7.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.239e-05/0.0954, allocations: 4 kB / 0.5053 GB, free: 7.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003743/0.09581, allocations: 79.91 kB / 0.5053 GB, free: 7.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009084/0.09672, allocations: 390.5 kB / 0.5057 GB, free: 7.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.907e-06/0.09674, allocations: 0 / 0.5057 GB, free: 7.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00141/0.09816, allocations: 0.9598 MB / 0.5066 GB, free: 6.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.503e-05/0.0982, allocations: 4 kB / 0.5066 GB, free: 6.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.274e-05/0.09823, allocations: 11.88 kB / 0.5067 GB, free: 6.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.872e-05/0.09828, allocations: 23.8 kB / 0.5067 GB, free: 6.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.788e-06/0.0983, allocations: 4 kB / 0.5067 GB, free: 6.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.09844, allocations: 39.97 kB / 0.5067 GB, free: 6.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.113e-05/0.0985, allocations: 19.92 kB / 0.5067 GB, free: 6.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.034e-05/0.09853, allocations: 19.81 kB / 0.5068 GB, free: 6.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.09871, allocations: 79.61 kB / 0.5068 GB, free: 5.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.09872, allocations: 4 kB / 0.5068 GB, free: 5.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.09873, allocations: 0 / 0.5068 GB, free: 5.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.09873, allocations: 0 / 0.5068 GB, free: 5.965 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.000373/0.09911, allocations: 390.8 kB / 0.5072 GB, free: 5.535 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.09915, allocations: 16.03 kB / 0.5072 GB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.108e-05/0.09922, allocations: 106 kB / 0.5073 GB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003541/0.09958, allocations: 108.1 kB / 0.5074 GB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004206/0.1, allocations: 344.1 kB / 0.5078 GB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.68e-05/0.1001, allocations: 154.9 kB / 0.5079 GB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.695e-05/0.1002, allocations: 162.9 kB / 0.5081 GB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.234e-05/0.1003, allocations: 105.1 kB / 0.5082 GB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.441e-05/0.1003, allocations: 75.28 kB / 0.5082 GB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.816e-05/0.1004, allocations: 150.6 kB / 0.5084 GB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.174e-05/0.1004, allocations: 158.5 kB / 0.5085 GB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.183e-05/0.1005, allocations: 154.6 kB / 0.5087 GB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003021/0.1008, allocations: 461.9 kB / 0.5091 GB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.088e-05/0.1009, allocations: 173.1 kB / 0.5093 GB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.71e-05/0.1009, allocations: 80.14 kB / 0.5094 GB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.357e-05/0.101, allocations: 79.28 kB / 0.5094 GB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.684e-05/0.101, allocations: 113.8 kB / 0.5095 GB, free: 3.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.101, allocations: 0 / 0.5095 GB, free: 3.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.869e-05/0.1011, allocations: 45.59 kB / 0.5096 GB, free: 2.957 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/0.1012, allocations: 126.7 kB / 0.5097 GB, free: 2.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.1014, allocations: 165.7 kB / 0.5099 GB, free: 2.648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.1014, allocations: 25.7 kB / 0.5099 GB, free: 2.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.256e-05/0.1015, allocations: 104.1 kB / 0.51 GB, free: 2.512 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.452e-06/0.1015, allocations: 0 / 0.51 GB, free: 2.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-05/0.1015, allocations: 13.7 kB / 0.51 GB, free: 2.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1016, allocations: 322.8 kB / 0.5103 GB, free: 2.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.747e-06/0.1016, allocations: 0 / 0.5103 GB, free: 2.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.454e-06/0.1016, allocations: 0 / 0.5103 GB, free: 2.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.984e-05/0.1017, allocations: 75.28 kB / 0.5104 GB, free: 2.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.978e-05/0.1017, allocations: 79.28 kB / 0.5105 GB, free: 2.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.869e-05/0.1018, allocations: 41.58 kB / 0.5105 GB, free: 1.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.082e-05/0.1018, allocations: 87.22 kB / 0.5106 GB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-05/0.1019, allocations: 79.28 kB / 0.5107 GB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.454e-05/0.1019, allocations: 154.5 kB / 0.5108 GB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.138e-05/0.102, allocations: 83.22 kB / 0.5109 GB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.118e-05/0.102, allocations: 154.6 kB / 0.511 GB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.331e-05/0.1021, allocations: 79.22 kB / 0.5111 GB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.1022, allocations: 87.27 kB / 0.5112 GB, free: 1.254 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.0001355/0.1023, allocations: 272.3 kB / 0.5114 GB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.023e-05/0.1024, allocations: 120.8 kB / 0.5116 GB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.158e-05/0.1024, allocations: 113.5 kB / 0.5117 GB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.056e-05/0.1025, allocations: 180.3 kB / 0.5118 GB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.005e-05/0.1026, allocations: 188.2 kB / 0.512 GB, free: 364 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.22e-05/0.1027, allocations: 180.3 kB / 0.5122 GB, free: 176 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002717/0.1029, allocations: 417.2 kB / 0.5126 GB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.851e-05/0.103, allocations: 112.9 kB / 0.5127 GB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.023e-05/0.103, allocations: 104.9 kB / 0.5128 GB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.037e-05/0.1031, allocations: 180.2 kB / 0.513 GB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.077e-05/0.1032, allocations: 180.3 kB / 0.5131 GB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-05/0.1033, allocations: 184.3 kB / 0.5133 GB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.209e-05/0.1033, allocations: 184.2 kB / 0.5135 GB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/0.1035, allocations: 307.7 kB / 0.5138 GB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.734e-05/0.1036, allocations: 194.4 kB / 0.514 GB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.231e-05/0.1037, allocations: 184.2 kB / 0.5141 GB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.347e-05/0.1038, allocations: 104.9 kB / 0.5142 GB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.522e-05/0.1038, allocations: 180.3 kB / 0.5144 GB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.333e-05/0.1039, allocations: 104.9 kB / 0.5145 GB, free: 13.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001136/0.104, allocations: 132.2 kB / 0.5146 GB, free: 13.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.104, allocations: 4 kB / 0.5146 GB, free: 13.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.1043, allocations: 4 kB / 0.5147 GB, free: 13.47 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.0004321/0.1047, allocations: 0.8087 MB / 0.5154 GB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.189e-05/0.1048, allocations: 11.88 kB / 0.5155 GB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1048, allocations: 4 kB / 0.5155 GB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.132e-06/0.1048, allocations: 0 / 0.5155 GB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004569/0.1052, allocations: 467.7 kB / 0.5159 GB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.1067, allocations: 1.827 MB / 0.5177 GB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.107, allocations: 0.7078 MB / 0.5184 GB, free: 9.516 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.074e-05/0.107, allocations: 7.984 kB / 0.5184 GB, free: 9.508 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.861e-05/0.107, allocations: 23.36 kB / 0.5184 GB, free: 9.484 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1071, allocations: 0 / 0.5184 GB, free: 9.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.1289, allocations: 1.828 MB / 0.5202 GB, free: 7.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/7.749, allocations: 7.062 kB / 0.5202 GB, free: 7.742 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestSingleLayer12over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestSingleLayer12over12.fmu > HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe 2>&1)